This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7082 - Invalid metadata in GIF images may crash the Checker
Summary: Invalid metadata in GIF images may crash the Checker
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 minor
Target Milestone: ---
Assignee: fd
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-06 09:24 UTC by fd
Modified: 2009-08-03 15:34 UTC (History)
0 users

See Also:


Attachments
GIF image with invalid metadata (180 bytes, image/gif)
2009-07-31 12:18 UTC, fd
Details

Description fd 2009-07-06 09:24:53 UTC
A GIF image that contains invalid metadata will trigger an uncaught:
 javax.imageio.IIOException: I/O error reading image metadata!

... in GifImageContent.checkTransparency.

See GIF image attached for an example of an image that, when embedded in an HTML page makes the Checker crash.
Comment 1 fd 2009-07-31 12:18:38 UTC
Created attachment 735 [details]
GIF image with invalid metadata
Comment 2 fd 2009-08-03 15:34:22 UTC
Update GifImageContent.checkTransparency not to throw an exception.
Note the error is not fully ignored because the image validation should report an error in that case in the constructor.