Menu

#10 GIF breaks the decoder - Colour table size: 64. Index: 255

pending-fixed
5
2012-01-15
2011-07-29
No

The attached image throws an unhandled exception in the GifDecoder:

System.ArgumentOutOfRangeException: Colour table size: 64. Index: 255
Parameter name: index
at GifComponents.Components.ColourTable.get_Item(Int32 index)
at GifComponents.Components.GifFrame.GetBaseImage(GifFrame previousFrame, GifFrame previousFrameBut1, LogicalScreenDescriptor lsd, GraphicControlExtension gce, ColourTable act)
at GifComponents.Components.GifFrame.CreateBitmap(TableBasedImageData imageData, LogicalScreenDescriptor lsd, ImageDescriptor id, ColourTable activeColourTable, GraphicControlExtension gce, GifFrame previousFrame, GifFrame previousFrameBut1, GifComponentStatus& status)
at GifComponents.Components.GifFrame..ctor(Stream inputStream, LogicalScreenDescriptor lsd, ColourTable gct, GraphicControlExtension gce, GifFrame previousFrame, GifFrame previousFrameBut1, Boolean xmlDebugging)
at GifComponents.GifDecoder.AddFrame(Stream inputStream, GraphicControlExtension lastGce)
at GifComponents.GifDecoder.ReadContents(Stream inputStream)
at GifComponents.GifDecoder.ReadStream(Stream inputStream)
at GifComponents.GifDecoder.Decode()
at GifInspector.MainForm.LoadGif()

Verified using the app as installed from GifComponents.Setup.0.1.3747.32243.msi

Discussion

  • Simon Bridewell

    Simon Bridewell - 2011-07-29

    GIF file which breaks the decoder

     
  • Simon Bridewell

    Simon Bridewell - 2012-01-02
    • status: open --> pending
     
  • Simon Bridewell

    Simon Bridewell - 2012-01-02

    This is fixed in my local copy now by validating the background colour index from the logical screen descriptor before passing it to the colour table indexer. Not checked in yet.

     
  • Simon Bridewell

    Simon Bridewell - 2012-01-15
    • status: pending --> open
     
  • Simon Bridewell

    Simon Bridewell - 2012-01-15

    Fix has now been committed to the repository

     
  • Simon Bridewell

    Simon Bridewell - 2012-01-15
    • status: open --> pending-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB