jmestwa-coder opened a new pull request, #649: URL: https://github.com/apache/logging-log4cxx/pull/649
## Summary This patch fixes two issues in `CyclicBuffer`: * Validate `maxSize` before constructing the backing storage to prevent invalid negative sizes from reaching the internal allocation path. * Fix wraparound handling in `CyclicBuffer::resize()` by wrapping `first` against `maxSize` instead of `numElems`. ## Tests Added regression coverage for: * negative size validation before allocation * preserving event order when resizing a partially consumed buffer Verified that the new resize test fails on unpatched behavior and passes with this change. -- 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]
