Summary: | MuPDF - Use-after-free in fz_drop_imp() | ||
---|---|---|---|
Product: | MuPDF | Reporter: | Kamil Frankowicz <kamil.frankowicz> |
Component: | mupdf | Assignee: | Tor Andersson <tor.andersson> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sebastian.rasmussen |
Priority: | P4 | ||
Version: | 1.11 | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: | PoC to trigger use-after-free (mutool) |
Description
Kamil Frankowicz
2017-09-25 01:37:50 UTC
I could only reproduce this issue when running make build=sanitize if I also added -O2 into the mix. To make it easier I committed 32a7ebd389cbd2df02034400c7536ab8330984ca which adds a build=sanitize-release which allows for easier testing of optimized builds using ASAN in the future. Commit c2663e51238ec8256da7fc61ad580db891d9fe9a fixes this bug which originated from forgetting to fz_var() a variable in commit 2707fa9e8e6d17d794330e719dec1b08161fb045 I can no longer reproduce the issue. |