mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
If we would exhaust the buffer entirely, set it to NULL rather than
point at the end of the buffer with a length of 0. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92967 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -321,7 +321,7 @@ static int char_buffer_read(char_buffer_t *buffer, char *in, int inl)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (buffer->length >= inl) {
|
||||
if (buffer->length > inl) {
|
||||
/* we have have enough to fill the caller's buffer */
|
||||
memcpy(in, buffer->value, inl);
|
||||
buffer->value += inl;
|
||||
|
Reference in New Issue
Block a user