Checkout
Joe Orton
committed
on 04 Nov 04
Fix for memory consumption DoS, CVE CAN-2004-0942:

* server/protocol.c (ap_rgetline_core): Don't trim trailing whitespace
from the buffer h… Show more
Fix for memory consumption DoS, CVE CAN-2004-0942:

* server/protocol.c (ap_rgetline_core): Don't trim trailing whitespace

from the buffer here.

(ap_get_mime_headers_core): Trim trailing whitespace here, after

reading a complete field including continuation lines.  Also simplify

code to remove whitespace between field-name and colon.

Reviewed by: Andr�� Malo, Bill Stoddard

Show less