about summary refs log tree commit homepage
path: root/ext
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-06 14:29:53 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-06 14:31:32 -0700
commit5d2f50294ddc0a6689ef5c30cc890f008a6ee173 (patch)
tree15f87aed92e1e7b2ddf13c298311019b3b334cdc /ext
parent21e1fd3f5c53ea3833d54c18e1a4b92e710e1189 (diff)
downloadunicorn-5d2f50294ddc0a6689ef5c30cc890f008a6ee173.tar.gz
Just in case, it'll be easier to track down if bugs
pop up.
Diffstat (limited to 'ext')
-rw-r--r--ext/unicorn_http/unicorn_http.rl1
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;
   }