A mutable reference to a struct was constructed by dereferencing a pointer obtained from slice::asptr. Instead, slice::asmut_ptr should have been called on the mutable slice argument. The former performs an implicit reborrow as an immutable shared reference which does not allow writing through the derived pointer.
{
"cwe_ids": [
"CWE-400"
],
"github_reviewed": true,
"github_reviewed_at": "2021-08-19T20:49:50Z",
"severity": "MODERATE",
"nvd_published_at": null
}