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 - XCF and LBM image loading might lead to random crashes
Summary: XCF and LBM image loading might lead to random crashes
Status: RESOLVED FIXED
Alias: None
Product: SDL_image
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: All All
: P2 critical
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-26 05:32 UTC by Marcus von Appen
Modified: 2013-07-27 04:18 UTC (History)
0 users

See Also:


Attachments
memory API patch (2.61 KB, application/octet-stream)
2013-07-26 05:32 UTC, Marcus von Appen
Details

Note You need to log in before you can comment on or make changes to this bug.
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