Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6181329
Votes 0
Synopsis JPEG Decoder crashes the VM on reading JPEG w/ premature end of data segment and missing EOI marker
Category jai:codeclib
Reported Against
Release Fixed 1.0_01
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs
Submit Date 19-OCT-2004
Description
JPEG Decoder crashes the VM on reading JPEG w/ premature end of data segment and missing EOI marker.
  xxxxx@xxxxx   10/19/04 18:16 GMT
Work Around
Rename lib/cpu to something else.
  xxxxx@xxxxx   10/19/04 23:52 GMT
Evaluation
It happens when the VIS or VIS2 version of libclib_jiio.so is used.
The C version libclib_jiio.so doesn't seem to cause any VM crash, and
the ReadRenderedTest test can show the correct part of the image.
  xxxxx@xxxxx   10/19/04 23:52 GMT

Actually the VIS versions do not crash the VM every time with the
corrupted image.  The problem was that the decoder didn't check for
the situation of missing EOI marker.  When it happened, the decoder
used garbage data in the buffer to do decoding which may or may not
run out of the buffer and cause athe VM to crash depending what were
in the buffer.  The docoder ought to be updated to handle this
situation gracefully.
  xxxxx@xxxxx   10/28/04 18:55 GMT
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang