uh_unescape(): More security

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
Jianhui Zhao committed 2017-11-29 14:48:50 +08:00
1 parent bec72d277d
commit b0c3acbc13
1 file changed
+1 -1
+1 -1
View File
@@ -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;