wasphin opened a new pull request, #3661:
URL: https://github.com/apache/brpc/pull/3661

   ### What problem does this PR solve?
   
   Problem Summary:
   
   Arena block allocation dereferences an unchecked malloc result, and block 
sizes are stored in 32-bit fields.
   
   ### What is changed and the side effects?
   
   Changed:
   
   - Check isolated-block allocation failures before touching block metadata.
   - Reject block sizes that cannot be represented or safely include the block 
header.
   - Add allocation-boundary and post-failure reuse coverage to CMake and Bazel.
   
   Side effects:
   - Performance effects: Negligible validation before allocating a new block.
   - Breaking backward compatibility: Requests exceeding the block-size 
representation are rejected with nullptr.
   
   ---
   ### Check List:
   - [x] Changes compile locally.
   - [x] Added focused test coverage.
   - Please follow [Contributor Covenant Code of 
Conduct](https://github.com/apache/brpc/blob/master/CODE_OF_CONDUCT.md).
   


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