SABITHSAHEB opened a new pull request, #14078: URL: https://github.com/apache/trafficserver/pull/14078
process_block in stream_editor matched the first body block in place although IOBuffer block data is not NUL-terminated, so strstr/strcasestr, regexec and the contbuf = buf + bytes_read carry-over read past the block and could send stale bytes from earlier transactions to the client, and a first block shorter than the continuity size (2*len-1, 39 for a default regex rule) wrapped buflen - keep into a negative TSIOBufferWrite length that trips sdk_assert and aborts traffic_server; this appends every block to the terminated contbuf before matching, clamps the emittable length at zero and erases the consumed prefix instead of reassigning from a C string. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
