From: msizanoen1 Date: Thu, 2 Mar 2023 11:37:02 +0000 (+0700) Subject: escape: add missing non-NULL parameter assertions X-Git-Tag: v254-rc1~1131^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F26628%2Fhead;p=thirdparty%2Fsystemd.git escape: add missing non-NULL parameter assertions --- diff --git a/src/basic/escape.c b/src/basic/escape.c index 317e2786d1a..d2cb1c73205 100644 --- a/src/basic/escape.c +++ b/src/basic/escape.c @@ -473,6 +473,8 @@ char* octescape(const char *s, size_t len) { static char* strcpy_backslash_escaped(char *t, const char *s, const char *bad) { assert(bad); + assert(t); + assert(s); while (*s) { int l = utf8_encoded_valid_unichar(s, SIZE_MAX);