bugGnash - The GNU Flash player - Bugs: bug #15523, Chokes on DefineBitsJPEG2 (block...

 
 

bug #15523: Chokes on DefineBitsJPEG2 (block type 21)

Submitter:  Sandro Santilli <strk>
Submitted:  Tue 24 Jan 2006 05:30:10 PM UTC
   
 
Category:  None Severity:  3 - Normal
Release:  None Status:  Fixed
Privacy:  Public Assigned to:  rsavoye
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 24 Apr 2006 02:44:00 PM UTC, comment #3: 

As of April 24, this is now fixed in Gnash CVS.

Rob Savoye <rsavoye>
Group administrator
Tue 14 Feb 2006 07:01:27 PM UTC, comment #2: 

It turns out this issue is a little bit more complicated than I originally thought. After fixing the error, I found I have another flash file "sugarbowl_1.swf" (attached) that uses the same DefineBitsJPEG2 tag, and it no longer works after the patch. My patch fixes A and breaks B, and reverting the patch breaks A and fixes B. Both files, when broken, choke on an internal libjpeg error (but no doubt it is our fault).

(I should note that the sugarbowl_1.swf I'm attaching doesn't play at all with or without the patch, however with my patch, it crashes on a libjpeg error, and without my patch it crashes somewhere else)

My best guess so far as to the difference between these two files is the flash version - "definebitsjpeg2.swf" is version 7, while "sugarbowl_1.swf" is version 6.

I'm still trying to find out if there might be another reason for the difference, but for the meantime, since I can't see any other reason the jpeg tag would be different in these two files, and since my patch works for the version 7 file, I'm leaving it in.

However, this requires some further investigation.

Michael Carlson <corfe>
Tue 14 Feb 2006 04:27:41 PM UTC, comment #1: 

The problem was that the code was trying to load the jpeg header information twice in a row, when a certain constructor was called. I've changed the input_impl struct in jpeg.cpp so that this shouldn't happen again.

Please get latest CVS and confirm this works for you too now.

Michael Carlson <corfe>
Tue 24 Jan 2006 05:30:10 PM UTC, original submission:  

A simple jpeg embedded in an swf file results
in a failed assertion.

  define_bits_jpeg2_loader: charid = 1 pos = 0x21
gnash: jpeg.cpp:258: void jpeg::jpeg_error_exit(jpeg_common_struct*): Assertion `0' failed.

JPEGTables block type seems to work fine.

Sandro Santilli <strk>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #1974:  sugarbowl_1.swf added by corfe (31KiB - application/x-shockwave-flash - version 6 definebitsjpeg2 flash file)
file #2127:  definebitsjpeg2.swf added by strk (34KiB - application/x-shockwave-flash)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 8 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-04-24 rsavoye StatusIn Progress Fixed
    Assigned tocorfe rsavoye
    Open/ClosedOpen Closed
2006-02-14 corfe StatusReady For Test In Progress
    Attached File- Added sugarbowl_1.swf, #3403
2006-02-14 corfe StatusNone Ready For Test
    Assigned toNone corfe
2006-01-24 strk Attached File- Added definebitsjpeg2.swf, #3309

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code