Merge pull request #8523 from keszybz/oss-fuzz-fixes

A fix for oss-fuzz msan ListenNetlink workaround
This commit is contained in:
Lennart Poettering
2018-03-21 15:26:25 +01:00
committed by GitHub
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -41,11 +41,14 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
for (;;) {
_cleanup_free_ char *l = NULL;
const char *ll;
if (read_line(f, LINE_MAX, &l) <= 0)
break;
if (startswith(l, "ListenNetlink="))
ll = l + strspn(l, WHITESPACE);
if (startswith(ll, "ListenNetlink="))
/* ListenNetlink causes a false positive in msan,
* let's skip this for now. */
return 0;
+1 -1
View File
@@ -165,7 +165,7 @@ static int next_assignment(
return 0;
}
/* Parse a variable assignment line */
/* Parse a single logical line */
static int parse_line(
const char* unit,
const char *filename,