Red Hat Bugzilla – Bug 1282615
transfig does not properly read alpha channel of png files
Last modified: 2016-04-04 10:56:38 EDT
Created attachment 1095126 [details]
check file_gamma when including png files
Description of problem:
transfig does not check if the file_gamma value is valid and therefor calls libpng with invalid values if the png file does not provide a valid file_gamma
Version-Release number of selected component (if applicable):
Convert a fig file with an included png file with invalid file_gamma
Steps to Reproduce:
fig2dev -L pstex_t -p test.pstex test.fig test.pstex_t
fig2dev -L pstex test.fig test.pstex
libpng throws an error, final figure misses png content
figure contains the png-content
patch fixes this problem by checking if file_gamma can be read.
it follows a patch from here:
it changes gamma from type `png_fixed_point` to `double`, but works anyway.
patched SRPM: https://ionic.at/transfig-3.2.5d-16.fc22.src.rpm
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
(In reply to David Kaufmann from comment #0)
> How reproducible:
> Convert a fig file with an included png file with invalid file_gamma
Could you please provide such file? I'm sure it's easy enough for you.
Created attachment 1141381 [details]
image for testcase
Created attachment 1141382 [details]
Sorry, I did forget to provide a testcase.
The attached file should show the error (also tested on up to date fedora 23 now)
Task info: https://koji.fedoraproject.org/koji/taskinfo?taskID=13554489