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.
This commit is contained in:
Evgeny Vereshchagin 2018-11-16 07:05:29 +01:00
parent 8857fb9beb
commit 8dc4de966c
1 changed files with 0 additions and 1 deletions

View File

@ -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.