]> granicus.if.org Git - apache/commit
Fixed a bug in ap_rgetline()
authorBrian Pane <brianp@apache.org>
Fri, 21 Dec 2001 04:21:15 +0000 (04:21 +0000)
committerBrian Pane <brianp@apache.org>
Fri, 21 Dec 2001 04:21:15 +0000 (04:21 +0000)
commitfe8b39ceb88a5a3301a714b9e97c59ef45546084
tree7b2b214ccb7b439f8f2686d3369c5d6c82926c1c
parenta8d6b1fc9d786cedc2cf925250c0cfa9c7ea5dc5
Fixed a bug in ap_rgetline()
When an input line required more than one read, each subsequent
block of data was copied on top of the previous one.  So if a
request line got split into multiple packets, the data would be
corrupted.  The new code uses a power-of-two allocator to expand
the buffer and properly append the next block of data at the end
of the previous one.

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