| Summary: | Insufficient checks in loading XCF | ||
|---|---|---|---|
| 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: |
xcf-improve-string-size-checks.patch
reproducer.xcf |
||
Created attachment 3327 [details]
reproducer.xcf
Patch added, thanks! https://hg.libsdl.org/SDL_image/rev/31263a049d50 Can you also check this change? https://hg.libsdl.org/SDL_image/rev/cec9b7594f75 No response, I'm going to assume that change looks good too. |
Created attachment 3326 [details] xcf-improve-string-size-checks.patch In some cases loading XCF file can lead to trying to allocate overlarge buffers for non-existent strings. Attached patch fixes this issue.