sahvx655-wq opened a new pull request, #1018:
URL: https://github.com/apache/tomcat/pull/1018

   while reading the response header write path i noticed the control-character 
filter in Http11OutputBuffer.write and AjpMessage.appendBytes loops up to 
bc.getLength() rather than the end of the data. for a ByteChunk the valid range 
is [getStart(), getEnd()) and getLength() is getEnd() minus getStart(), so when 
the chunk start is non-zero the bytes past getLength() are never stripped, and 
if start is past length the loop does not run at all. the same byte filtering 
loops in Http11Processor, StreamProcessor and UEncoder all use getEnd(). this 
brings these two into line.


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to