VDB
Sign up
MEDIUM5.5

GHSA-9wgh-vjj7-7433

Mutable reference with immutable provenance in image

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

crates.io/image
Introduced in: 0Fixed in: 0.23.12

Upgrade image to 0.23.12 or newer (ecosystem crates.io).

References