| Summary: | Fix missing field initialization in nanosvg styles struct | ||
|---|---|---|---|
| Product: | SDL_image | Reporter: | janisozaur <janisozaur+libsdl> |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | janisozaur+libsdl |
| Version: | 2.0.4 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: |
Initialize_all_the_SVG_style_fields.patch
bug-4636.svg |
||
Created attachment 3786 [details]
bug-4636.svg
Patch added, thanks! https://hg.libsdl.org/SDL_image/rev/93332afa1831 |
Created attachment 3785 [details] Initialize_all_the_SVG_style_fields.patch A malformed SVG file can lead to a path where style description is left unitialized and subsequently gets passed to free() in nsvg__deleteStyles. Attached is the patch fixing the problem and a file showcasing the problem.