Skip to content

Commit

Permalink
add fltk advisory
Browse files Browse the repository at this point in the history
  • Loading branch information
MoAlyousef committed Mar 6, 2021
1 parent ae1107e commit a33c05d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions crates/fltk/RUSTSEC-0000-0000.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "fltk"
date = "2021-03-06"
categories = ["memory-corruption"]
functions = { "fltk::prelude::WidgetExt::set_label_type" = ["< 0.15.2"], "fltk::prelude::WindowExt::set_icon" = ["< 0.14.12"], fltk::image::Pixmap::new = ["< 0.15.2, >= 0.14.12"] }
[versions]
patched = [">= 0.15.3"]
```

# Multiple memory safety issues

Affected versions contain multiple memory safety issues, such as:

- Setting a multi label type where an image doesn't exist would lead to a NULL pointer dereference.
- Setting a window icon using a non-raster image (which FLTK rasterizes lazily) would lead to a NULL dereference.
- Pixmap constructor would not check for correct pixmaps which could lead to out-of bound reads.

0 comments on commit a33c05d

Please sign in to comment.