Menu

#4 Unhandled exception decoding a frame with no GCT or LCT

closed-fixed
5
2009-11-22
2009-11-10
No

GifFrame.FromStream is assuming if the caller has supplied an image descriptor with HasLocalColourTable == false, that the gif will have a global colour table. If the caller also supplies a null global colour table then this method throws a NullReferenceException.

Discussion

  • Simon Bridewell

    Simon Bridewell - 2009-11-10

    GifFrame.FromStream now checks, if HasLocalColourTable is false, that the supplied global colour table is not null. If neither local nor global colour table is present then the frame cannot be decoded, so a frame containing a default bitmap of the appropriate size is returned.

     
  • Simon Bridewell

    Simon Bridewell - 2009-11-10
    • assigned_to: nobody --> sbridewell
    • status: open --> open-fixed
     
  • Simon Bridewell

    Simon Bridewell - 2009-11-22
    • status: open-fixed --> closed-fixed
     
  • Simon Bridewell

    Simon Bridewell - 2009-11-22

    The fix has been released in MSI version 0.1.3613.31641 so I'm closing this now.

     

Log in to post a comment.

MongoDB Logo MongoDB