dxbjavid opened a new pull request, #3590:
URL: https://github.com/apache/thrift/pull/3590

   the container size precheck multiplies a wire-controlled element count by 
the per-element minimum size in 32-bit int, so a crafted list, set or map 
header can wrap the product down to a small or zero value and slip past the 
maxMessageSize guard, letting an oversized container through before any 
allocation is bounded. the same shape sits in the binary, compact and json 
protocols and the protocol base, plus the c_glib binary and compact readers. 
widen the multiplication to the long type checkReadBytesAvailable already takes 
so the count can no longer overflow, and add a regression test for the three 
c++ protocols.


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

Reply via email to