chunked_body_is_complete(): Check input more carefully
authorFabian Keil <fk@fabiankeil.de>
Sat, 24 Jan 2015 16:41:20 +0000 (16:41 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sat, 24 Jan 2015 16:41:20 +0000 (16:41 +0000)
commit5e4afe3fa0696e23ce1b545b14450f225c4119c2
tree76a966e2858426ea9bd59bc5a2aa32a4a46d9392
parent37b60a3260c885bfa3f33d94a186a2741fca52f5
chunked_body_is_complete(): Check input more carefully

Previously a nul-chunk without mandatory trailing "\r\n" would
not be rejected as invalid. When compiled with assertions enabled,
this would cause Privoxy to abort().

Reported by Matthew Daley.
jcc.c