We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4637 - Patch: Gracefully handle XCF files with overly large colourmaps
Summary: Patch: Gracefully handle XCF files with overly large colourmaps
Status: RESOLVED FIXED
Alias: None
Product: SDL_image
Classification: Unclassified
Component: misc (show other bugs)
Version: 2.0.4
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-19 22:17 UTC by janisozaur
Modified: 2019-06-10 22:31 UTC (History)
1 user (show)

See Also:


Attachments
Gracefully_handle_XCF_files_with_overly_large_colourmaps.patch (11.03 KB, patch)
2019-05-19 22:17 UTC, janisozaur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description janisozaur 2019-05-19 22:17:11 UTC
Created attachment 3787 [details]
Gracefully_handle_XCF_files_with_overly_large_colourmaps.patch

Some files may have large colourmaps, which can cause failed malloc call. Rather than crashing, log and recover.
Comment 1 Sam Lantinga 2019-06-10 22:31:49 UTC
It looks like this patch has been applied, thanks!