Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/imlib2
Dir : e17/libs/imlib2/loaders
Modified Files:
loader_bmp.c
Log Message:
more bmp fixes
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/imlib2/loaders/loader_bmp.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- loader_bmp.c 26 Aug 2004 17:26:10 -0000 1.14
+++ loader_bmp.c 28 Aug 2004 03:34:05 -0000 1.15
@@ -111,6 +111,11 @@
fseek(f, 8, SEEK_CUR);
ReadleLong(f, &offset);
ReadleLong(f, &headSize);
+ if (offset >= size)
+ {
+ fclose(f);
+ return 0;
+ }
if (headSize == 12)
{
ReadleShort(f, &tmpShort);
@@ -139,6 +144,12 @@
fclose(f);
return 0;
}
+
+ if ((w > 8192) || (h > 8192))
+ {
+ fclose(f);
+ return 0;
+ }
if (bitcount < 16)
{
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs