Skip to content
OpenAdvisories
Medium GHSA-ppjr-267j-5p9x RUSTSEC-2023-0021

NULL pointer derefernce in `stb_image`

Published Mar 20, 2023 · Updated Nov 8, 2023 · Assigned by GHSA

Description

A bug in error handling in the `stb_image` C library could cause a NULL pointer dereference when attempting to load an invalid or unsupported image file. This is fixed in version 0.2.5 and later of the `stb_image` Rust crate, by patching the C code to correctly handle NULL pointers.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io stb_image < 0.2.5 0.2.5 GHSA-ppjr-267j-5p9x
crates.io stb_image >= 0.0.0-0, < 0.2.5 0.2.5 RUSTSEC-2023-0021

References