As indicated by this issue, a buffer overrun is possible in the set_payload setter of the various mutable "Packet" struct setters. The offending set_payload functions were defined within the struct impl blocks in earlier versions of the package, and later by the packet macro.
Fixed in the packet macro by this PR.
{
"github_reviewed": true,
"cwe_ids": [],
"github_reviewed_at": "2023-02-09T19:27:57Z",
"nvd_published_at": null,
"severity": "MODERATE"
}