1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-02 09:47:03 +03:00

escape: add missing non-NULL parameter assertions

(cherry picked from commit 0b82a6fa5d2ba94bbc1c3db4a04dfd052e1cd446)
This commit is contained in:
msizanoen1 2023-03-02 18:37:02 +07:00 committed by Zbigniew Jędrzejewski-Szmek
parent c4e7cf2bd7
commit bb3e44323b

View File

@ -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);