-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NULL pointer dereference in stb_image (#1647)
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
```toml | ||
[advisory] | ||
id = "RUSTSEC-0000-0000" | ||
package = "stb_image" | ||
date = "2023-03-19" | ||
url = "https://github.com/servo/rust-stb-image/pull/102" | ||
categories = ["memory-corruption"] | ||
keywords = ["NULL-pointer-dereference"] | ||
|
||
[versions] | ||
patched = [">= 0.2.5"] | ||
``` | ||
|
||
# NULL pointer derefernce in `stb_image` | ||
|
||
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. | ||
|
||
Thank you to GitHub user 0xdd96 for finding and fixing this vulnerability. |