buffer when returning APR_ENOSPC. This prevents seg faults in
ap_get_mime_headers_core in an error path which handles headers that are too
long.
Submitted by: Jeff Trawick
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99079
13f79535-47bb-0310-9956-
ffa450edef68
/* Would this overrun our buffer? If so, we'll die. */
if (n < bytes_handled + len) {
+ *read = bytes_handled;
return APR_ENOSPC;
}
last_char = *s + bytes_handled - 1;
}
else {
+ *read = n;
return APR_ENOSPC;
}
}
return APR_SUCCESS;
}
else {
+ *read = n;
return APR_ENOSPC;
}
}