Author: spouliot
Date: 2007-03-30 14:09:20 -0500 (Fri, 30 Mar 2007)
New Revision: 75229

Modified:
   trunk/libgdiplus/src/ChangeLog
   trunk/libgdiplus/src/jpegcodec.c
Log:
2007-03-30  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * jpegcodec.c: Ensure we throw the "right" exception on the managed
        side when an invalid file is read. Fix #80980



Modified: trunk/libgdiplus/src/ChangeLog
===================================================================
--- trunk/libgdiplus/src/ChangeLog      2007-03-30 19:07:21 UTC (rev 75228)
+++ trunk/libgdiplus/src/ChangeLog      2007-03-30 19:09:20 UTC (rev 75229)
@@ -1,3 +1,8 @@
+2007-03-30  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * jpegcodec.c: Ensure we throw the "right" exception on the managed
+       side when an invalid file is read. Fix #80980
+
 2007-03-30  Sebastien Pouliot  <[EMAIL PROTECTED]> 
 
        * brush.c: Change contract between GdipDeleteBrush and the destroy

Modified: trunk/libgdiplus/src/jpegcodec.c
===================================================================
--- trunk/libgdiplus/src/jpegcodec.c    2007-03-30 19:07:21 UTC (rev 75228)
+++ trunk/libgdiplus/src/jpegcodec.c    2007-03-30 19:09:20 UTC (rev 75229)
@@ -291,7 +291,7 @@
 
        if (sigsetjmp (jerr.setjmp_buffer, 1)) {
                /* Error occured during decompression */
-               status = GenericError;
+               status = OutOfMemory;
                goto error;
        }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to