generally worked but with a memory debug build it could
crash since some memory debuggers don't like an alloc of
zero bytes
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93037
13f79535-47bb-0310-9956-
ffa450edef68
return rv;
}
+ if (len == 0) {
+ /* no use attempting a zero-byte alloc (hurts when
+ * using --with-efence --enable-pool-debug) or
+ * doing any of the other logic either
+ */
+ continue;
+ }
+
/* Would this overrun our buffer? If so, we'll die. */
if (n < bytes_handled + len) {
apr_brigade_destroy(b);