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 1991

Summary: XCF and LBM image loading might lead to random crashes
Product: SDL_image Reporter: Marcus von Appen <mva>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2    
Version: unspecified   
Hardware: All   
OS: All   
Attachments: memory API patch

Description Marcus von Appen 2013-07-26 05:32:31 UTC
Created attachment 1259 [details]
memory API patch

The current XCF and LBM image loaders mix SDL's and the underlying C memory APIs to allocate, reallocate or compare memory, which can lead to random crashes on the target system.

Attached is a small patch to clean up the API and fix a memory lead in the XCF loader implementation.
Comment 1 Sam Lantinga 2013-07-27 04:18:58 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL_image/rev/1700d607fce3