uh_unescape(): More security
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>main
parent
bec72d277d
commit
b0c3acbc13
|
@ -575,7 +575,7 @@ int uh_unescape(const char *str, int len, char *out, int olen)
|
|||
const char *p = str;
|
||||
char *o = out;
|
||||
|
||||
assert(str && out);
|
||||
assert(str && out && olen > 1);
|
||||
|
||||
olen -= 1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue