`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_payload
setter of the various mutable "Packet" struct setters. The offendingset_payload
functions were defined within the structimpl
blocks in earlier versions of the package, and later by thepacket
macro.Fixed in the
packet
macro by this PR.References