Commit c6b1ec1220bf5b4d33b1011534bdef75fd6183be

Zonr Chang 2016-08-24T17:16:32

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