tweak an existing comment to make it a little more clear
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93853
13f79535-47bb-0310-9956-
ffa450edef68
if (apr_file_read(map, buffer, len) != APR_SUCCESS) {
return -1;
}
+ /* XXX next line can go beyond allocated storage and segfault,
+ * or worse yet go beyond data read but not beyond allocated
+ * storage and think it found the tag
+ */
endbody = strstr(buffer, tag);
if (!endbody) {
return -1;
return -1;
}
- /* Give the caller back the actual body's offset and length */
+ /* Give the caller back the actual body's file offset and length */
*len = bodylen;
return pos - (endbody - buffer);
}