uh_unescape(): More security
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
1 parent
bec72d277d
commit
b0c3acbc13
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user