Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/modules/loaders/xpm Modified Files: evas_image_load_xpm.c Log Message: fix pixel buffer overflow on loading corrupt/malformed/bad xpm's =================================================================== RCS file: /cvs/e/e17/libs/evas/src/modules/loaders/xpm/evas_image_load_xpm.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- evas_image_load_xpm.c 24 Sep 2006 13:24:28 -0000 1.6 +++ evas_image_load_xpm.c 24 Sep 2006 13:28:01 -0000 1.7 @@ -384,7 +384,7 @@ return 0; } ptr = im->image->data; - end = ptr + (sizeof(DATA32) * w * h); + end = ptr + (w * h); pixels = w * h; } else ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs