Closed Bug 1245975 Opened 9 years ago Closed 2 years ago

Confirmation code images (PNG) can not be loaded, "Image corrupt or truncated." message shown

Categories

(Core :: Graphics: ImageLib, defect, P3)

44 Branch
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: yfdyh000, Unassigned)

References

()

Details

(Whiteboard: [gfx-noted])

Attachments

(1 file)

STR: Open the https://potplayer.daum.net/forum/ucp.php?mode=register, click the "I agree to these terms" button, and see the "Confirmation code". Or, open the https://potplayer.daum.net/forum/ucp.php?mode=confirm to see the images. Actual results: No shown. "Image corrupt or truncated." shown on Web Console. The images works fine in IE 11, Chrome 48 and some viewer.
Enabled libpng warnings and saw this on the console window: [ImgDecoder #2]: E/PNGDecoder libpng error: Decompression error in IDAT Not a lot more useful than the generic "image is corrupt" but does tell you that it's a damaged PNG file that is triggering the error.
In addition, no error message is displayed in the view, i.e. the "The image \u201c%S\u201d cannot be displayed because it contains errors.".
zlib fails here https://dxr.mozilla.org/mozilla-central/source/modules/zlib/src/inflate.c#1189 hold is actually equal to state->check, but state->flags is zero, so ZSWAP32(hold)) has to be equal to state->check and it isn't. state->flags seems to come from the header, so it seems the header is set wrong.
Here's a CAPTCHA image from the site in question. pngcrush-1.8.0 built with libpng-1.6.22 also rejects the image with "IDAT: incorrect data check", and ImageMagick built with libpng-1.6.20 rejects it with "Corrupt image". pngcheck -v ucp.png says File: ucp.png (16118 bytes) chunk IHDR at offset 0x0000c, length 13 320 x 50 image, 8-bit grayscale, non-interlaced chunk IDAT at offset 0x00025, length 16061 zlib: deflated, 32K window, superfast compression chunk IEND at offset 0x03eee, length 0
Whiteboard: [gfx-noted]
See Also: → 1693190
Severity: normal → S3

The forum linked in this report no longer exists.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: