mirror of
https://github.com/pygos/init.git
synced 2024-11-22 03:09:46 +01:00
Do not allow embedding null-bytes into a string
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
67d000cdc3
commit
dca72a4c77
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ int unescape(char *src)
|
|||
default:
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (c == 0)
|
||||
return -1;
|
||||
}
|
||||
|
||||
*(dst++) = c;
|
||||
|
|
Loading…
Reference in a new issue