summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2018-11-16 07:05:29 +0100
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>2019-12-03 10:06:23 +0100
commit43d72623fdfca8500c8c89a4b5023e35a3f0b259 (patch)
tree1852c5309fec53867e7f95a4d0eb47661049fb02
parente7e70f575840cd021f6429f264911ae0cbff9741 (diff)
downloadsystemd-43d72623fdfca8500c8c89a4b5023e35a3f0b259.tar.gz
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. (cherry picked from commit 8dc4de966ce6d32470aaff30ed054f6a2688d6d7) Resolves: #1764560
-rw-r--r--src/basic/escape.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/basic/escape.c b/src/basic/escape.c
index 5004763d97..5f715156fb 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.