Closed
Bug 1300661
Opened 8 years ago
Closed 8 years ago
PNG image is said to be corrupted
Categories
(Core :: Graphics: ImageLib, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1311776
People
(Reporter: karlcow, Assigned: glennrp+bmo)
References
Details
(Whiteboard: [webcompat], gfx-noted)
Attachments
(1 file)
4.40 KB,
patch
|
Details | Diff | Splinter Review |
This is a spin off of the Web Compat issue https://webcompat.com/issues/3148 Steps to reproduce 1. Go to https://potplayer.daum.net/forum/ucp.php?mode=register 2. Click on the agreement button 3. Redirection to a new page with a form 4. At the bottom of the form there is a section for an image which is not displayed. HTML code <li class="list-group-item"> <img src="./ucp.php?mode=confirm&confirm_id=217d9c9f1a2429ff0b03ddc0972c1dfb&type=1" alt="Confirmation code" style="display: block; margin: auto;"> </li> The URI https://potplayer.daum.net/forum/ucp.php?mode=confirm&confirm_id=217d9c9f1a2429ff0b03ddc0972c1dfb&type=1 is sending the same response header to Firefox and Safari ```http HTTP/1.1 200 OK Cache-control: no-cache, no-store Connection: Keep-Alive Content-Type: image/png Date: Tue, 06 Sep 2016 02:10:20 GMT Keep-Alive: timeout=5, max=100 Server: Set-Cookie: phpbb3_cg7xa_u=1; expires=Wed, 06-Sep-2017 02:10:20 GMT; path=/; domain=potplayer.daum.net; HttpOnly Set-Cookie: phpbb3_cg7xa_k=; expires=Wed, 06-Sep-2017 02:10:20 GMT; path=/; domain=potplayer.daum.net; HttpOnly Set-Cookie: phpbb3_cg7xa_sid=3ecf68c66c91e98611b1521a123f93ac; expires=Wed, 06-Sep-2017 02:10:20 GMT; path=/; domain=potplayer.daum.net; HttpOnly Transfer-Encoding: chunked X-Powered-By: PHP/5.5.13 ``` The message in the console in Firefox is ``` Image corrupt or truncated. ``` from https://dxr.mozilla.org/mozilla-central/source/image/RasterImage.cpp#1666 The image displays well in Safari/WebKit and Opera/Blink. Saving the image from Safari locally and trying to open with Firefox leads to the same error. Same issue in Firefox 48, 50 and 51
Reporter | ||
Updated•8 years ago
|
Reporter | ||
Updated•8 years ago
|
Whiteboard: [webcompat]
Updated•8 years ago
|
Flags: needinfo?(aosmond)
Comment 2•8 years ago
|
||
pngcheck says "zlib: inflate error = -3 (data error)" I know in the past we've encountered png's where the crc didn't match in the deflate data, we refuse to display these pngs. But I guess other browsers don't.
Updated•8 years ago
|
Whiteboard: [webcompat] → [webcompat], gfx-noted
Assignee | ||
Comment 3•8 years ago
|
||
Changing the png_error() to a png_benign_error() at line 844 in pngpread.c fixes this bug. I'll post a patch shortly to do this safely.
Assignee: nobody → glennrp+bmo
Status: NEW → ASSIGNED
Assignee | ||
Updated•8 years ago
|
Flags: needinfo?(seth.bugzilla)
Assignee | ||
Comment 4•8 years ago
|
||
Assignee | ||
Comment 5•8 years ago
|
||
I've pushed the patch upstream to the libpng GIT repositories, for eventual release in libpng-1.6.26
Updated•8 years ago
|
Flags: needinfo?(aosmond)
Reporter | ||
Updated•8 years ago
|
See Also: → https://webcompat.com/issues/3148
Comment 6•8 years ago
|
||
Confirmed that this is fixed by the introduction of libpng 1.6.26.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•