`pnet_packet` buffer overrun in `set_payload` setters
Moderate severity
GitHub Reviewed
Published
Feb 9, 2023
to the GitHub Advisory Database
•
Updated Feb 9, 2023
Description
Published to the GitHub Advisory Database
Feb 9, 2023
Reviewed
Feb 9, 2023
Last updated
Feb 9, 2023
As indicated by this issue, a buffer overrun is possible in the
set_payloadsetter of the various mutable "Packet" struct setters. The offendingset_payloadfunctions were defined within the structimplblocks in earlier versions of the package, and later by thepacketmacro.Fixed in the
packetmacro by this PR.References