From: Zbigniew Jędrzejewski-Szmek Date: Fri, 6 Apr 2018 09:36:17 +0000 (+0200) Subject: fuzz-unit-file: allow a space between variable name and "=" (#8670) X-Git-Tag: v239~430 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b834c6cee50cb1af771a6c1483106027a2ea39d2;p=thirdparty%2Fsystemd.git fuzz-unit-file: allow a space between variable name and "=" (#8670) The parser allows that, so the check when to skip needs this too. https://oss-fuzz.com/v2/issue/5106486364602368/7422 --- diff --git a/src/fuzz/fuzz-unit-file.c b/src/fuzz/fuzz-unit-file.c index 17da776ae33..11df4673fe2 100644 --- a/src/fuzz/fuzz-unit-file.c +++ b/src/fuzz/fuzz-unit-file.c @@ -48,7 +48,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { ll = l + strspn(l, WHITESPACE); - if (HAS_FEATURE_MEMORY_SANITIZER && startswith(ll, "ListenNetlink=")) { + if (HAS_FEATURE_MEMORY_SANITIZER && startswith(ll, "ListenNetlink")) { /* ListenNetlink causes a false positive in msan, * let's skip this for now. */ log_notice("Skipping test because ListenNetlink= is present");