]> granicus.if.org Git - apache/commit
ap_get_mime_headers: tighten up the null termination of header line which is
authorGreg Ames <gregames@apache.org>
Wed, 11 Dec 2002 21:03:58 +0000 (21:03 +0000)
committerGreg Ames <gregames@apache.org>
Wed, 11 Dec 2002 21:03:58 +0000 (21:03 +0000)
commitcf9ea6f999c9e2403cffa84aae18c82afc17e561
treec78590495969a1bcdb29deff4ad4fba0d7c31b65
parent34b1b3119d2c3a84c841cb52a7f02b901f83af2d
ap_get_mime_headers: tighten up the null termination of header line which is
too long.  getline can return a smaller length that what it actually read in
that case.

The check for len > limit_fieldsize isn't needed, but we do need to insure
that getline actually allocated a buffer (and set len) in the case where
the first socket input buffer is already bigger than the limit.

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