]> granicus.if.org Git - libevent/commit
Fix evhttp_uriencode() regression.
authorZonr Chang <zonr.net@gmail.com>
Wed, 24 Aug 2016 09:16:32 +0000 (17:16 +0800)
committerAzat Khuzhin <a3at.mail@gmail.com>
Fri, 26 Aug 2016 22:24:11 +0000 (01:24 +0300)
commitc6b1ec1220bf5b4d33b1011534bdef75fd6183be
treed4cf479f7e09a6ac961b82e97ebef58790333baa
parente94250c8e3ad12c1707f9ba6971b0e9d215dda00
Fix evhttp_uriencode() regression.

http_uriencode_test() (in test/regress_http.c) has been failed after
72afe4c as "hello\0world" is encoded to "hello" instead of
"hello%00world". This is because of a misplaced overflow check which
causes the non-negative "size" specified in parameter being ignored in
within-bound URI.

Fixes: #392
http.c