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

Summary: Patch: Gracefully handle XCF files with overly large colourmaps
Product: SDL_image Reporter: janisozaur <janisozaur+libsdl>
Component: miscAssignee: 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: Gracefully_handle_XCF_files_with_overly_large_colourmaps.patch

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!