0 Replies Latest reply on Oct 19, 2009 1:02 PM by Peter Farland

    [svn:fx-trunk] 11008: Adding a hack to avoid reading too much of the stream when we encounter invalid Glyph SHAPE structure .

    Peter Farland Level 3

      Revision: 11008

      Author:   pfarland@adobe.com

      Date:     2009-10-19 13:01:46 -0700 (Mon, 19 Oct 2009)

       

      Log Message:

      ***********

      Adding a hack to avoid reading too much of the stream when we encounter invalid Glyph SHAPE structure. The SWF spec has since clarified that at least one shape record has to be included, but third-party tools still generate SWFs with embedded fonts that contain empty glyphs without at least one shape record. The offset is used to calculate how many bytes should have been read in... to avoid making changes to the underlying reader, this change does not mark/reset the stream based on these offsets but rather hacks in a fix to avoid these bad glyphs.

       

      QE notes: None

      Doc notes: None

      Bugs: SDK-18153 - Error: exception during transcoding: unrecognized fill style type: 212

      Reviewer: Paul

      Tests run: checkintests, bug test case

      Is noteworthy for integration: No

       

      Ticket Links:

      ************

          http://bugs.adobe.com/jira/browse/SDK-18153

       

      Modified Paths:

      **************

          flex/sdk/trunk/modules/swfutils/src/java/flash/swf/TagDecoder.java