| Summary: | invalid checks when loading PNM | ||
|---|---|---|---|
| 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.3 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: |
0001-PNM-Improve-checks-when-loading-a-file.patch
invalid.pnm |
||
Created attachment 3325 [details]
invalid.pnm
Patch added, thanks! https://hg.libsdl.org/SDL_image/rev/90a531f221f2 |
Created attachment 3324 [details] 0001-PNM-Improve-checks-when-loading-a-file.patch A malicious PNM file can cause overflow in checks and lead to allocation of overly large amount of memory. Provided patch improves the checks for such cases.