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 1377 - SDL_image 1.2.11 corrupts png of PseudoClass type 8bit
Summary: SDL_image 1.2.11 corrupts png of PseudoClass type 8bit
Status: RESOLVED FIXED
Alias: None
Product: SDL_image
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: x86_64 Linux
: P2 critical
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-17 22:46 UTC by alien
Modified: 2012-01-19 20:20 UTC (History)
0 users

See Also:


Attachments
Sample image (1.30 KB, image/png)
2012-01-18 04:53 UTC, Sam Lantinga
Details
SDL_image-1.2.11-png_channels.patch (597 bytes, patch)
2012-01-18 14:21 UTC, alien
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description alien 2012-01-17 22:46:56 UTC
see https://bugs.mageia.org/show_bug.cgi?id=4175

i fear this may have been the problematic change: (unsure)
http://hg.libsdl.org/SDL_image/rev/ea460af4ceff
Comment 1 Sam Lantinga 2012-01-18 04:53:50 UTC
Created attachment 781 [details]
Sample image

AL13N

i think this is the one
Comment 2 alien 2012-01-18 14:21:26 UTC
Created attachment 785 [details]
SDL_image-1.2.11-png_channels.patch

when looking a the differences between a patch we carried in the 1.2.10 and the 1.2.11; i noted a difference in it, and after fixing that, it seemed to work.

since this is about a 256c png image it should be 1byte, not 3, thus this solves it for me.

thanks alot of the assistance. since i'm a mageia packager, i'm adding the patch to our SDL_image build.
Comment 3 Sam Lantinga 2012-01-19 20:20:17 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL_image/rev/7036dd36a22f