diff options
-rw-r--r-- | ext/unicorn_http/unicorn_http.rl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/unicorn_http/unicorn_http.rl b/ext/unicorn_http/unicorn_http.rl index f8649fe..1f22dfb 100644 --- a/ext/unicorn_http/unicorn_http.rl +++ b/ext/unicorn_http/unicorn_http.rl @@ -302,6 +302,7 @@ static void write_value(VALUE req, struct http_parser *hp, cs = http_parser_first_final; } ++p; + assert(p <= pe && "buffer overflow after chunked body"); goto post_exec; } |