jmestwa-coder opened a new pull request, #698:
URL: https://github.com/apache/logging-log4cxx/pull/698
## Summary
This change fixes DatagramPacket handling in the UDP socket implementation
by honoring packet offsets during send/receive operations and updating the
packet length after a successful receive.
## Changes
* Honor `DatagramPacket::getOffset()` when sending UDP packets.
* Honor `DatagramPacket::getOffset()` when receiving UDP packets.
* Update the packet length to the actual number of bytes received.
* Add centralized validation for invalid packet states:
* Reject negative offsets.
* Reject negative lengths.
* Reject null buffers for non-empty packets.
--
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]