]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Fix for memory consumption DoS, CVE CAN-2004-0942:
authorJoe Orton <jorton@apache.org>
Thu, 4 Nov 2004 14:50:31 +0000 (14:50 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 4 Nov 2004 14:50:31 +0000 (14:50 +0000)
commit4ddf48af17a85a133b08ce2c1b99aae7bb78ef01
tree1f332dcf875d072b0bd3374cc0584c6455bfd0aa
parent6f349a2b3d1081694d834933b6713d66cdd81fe7
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

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105680 13f79535-47bb-0310-9956-ffa450edef68
server/protocol.c