From: Evgeny Vereshchagin Date: Fri, 16 Nov 2018 06:05:29 +0000 (+0100) Subject: basic: remove an assertion from cunescape_one X-Git-Tag: v240~315^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dc4de966ce6d32470aaff30ed054f6a2688d6d7;p=thirdparty%2Fsystemd.git basic: remove an assertion from cunescape_one The function takes a pointer to a random block of memory and the length of that block. It shouldn't crash every time it sees a zero byte at the beginning there. This should help the dev-kmsg fuzzer to keep going. --- diff --git a/src/basic/escape.c b/src/basic/escape.c index 5004763d978..5f715156fbf 100644 --- a/src/basic/escape.c +++ b/src/basic/escape.c @@ -106,7 +106,6 @@ int cunescape_one(const char *p, size_t length, char32_t *ret, bool *eight_bit) int r = 1; assert(p); - assert(*p); assert(ret); /* Unescapes C style. Returns the unescaped character in ret.