Project

General

Profile

Actions

Bug #2854

closed

chunked transfer encoding in request body only works for tiny chunks

Added by the_jk about 7 years ago. Updated about 7 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
ASK QUESTIONS IN Forums:

Description

curl -v --data-ascii "0123456789abcdef" -H "Transfer-Encoding: chunked" 

fails with "400 - Bad Request" while
curl -v --data-ascii "0123456789abcde" -H "Transfer-Encoding: chunked" 

succeeds as the chunk is less than 16 bytes.

Bug caused by an incorrect overflow protection in connection_handle_read_post_chunked in connections-glue.c


Files

Added by gstrauss about 7 years ago

Revision dc1675ea (diff)

[core] fix POST with chunked request body (fixes #2854)

(thx the_jk)

x-ref:
"chunked transfer encoding in request body only works for tiny chunks"
https://redmine.lighttpd.net/issues/2854

Added by gstrauss about 7 years ago

Revision 58a17939 (diff)

[core] fix 32-bit compile POST w/ chunked request body (#2854)

(thx the_jk)

x-ref:
"chunked transfer encoding in request body only works for tiny chunks"
https://redmine.lighttpd.net/issues/2854

Actions

Also available in: Atom