jmestwa-coder opened a new pull request, #684: URL: https://github.com/apache/logging-log4cxx/pull/684
## Summary - Handle zero-length writes in `ByteArrayOutputStream::write` - Replace manual `resize + memcpy` append logic with `std::vector::insert` - Add regression coverage for empty-write behavior ## Details - Return early when `buf.remaining() == 0` - Avoid indexed access on empty vectors during zero-length writes - Keep existing overflow protection unchanged - Preserve existing write semantics for non-empty buffers -- 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]
