Lucene search

K
osvGoogleOSV:GHSA-9WGH-VJJ7-7433
HistoryAug 25, 2021 - 8:49 p.m.

Mutable reference with immutable provenance in image

2021-08-2520:49:54
Google
osv.dev
7
mutable
reference
struct
derivation
slice
pointer
immutable
shared
writing
software

EPSS

0

Percentile

12.8%

A mutable reference to a struct was constructed by dereferencing a pointer obtained from slice::as_ptr. Instead, slice::as_mut_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.

EPSS

0

Percentile

12.8%