Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/modules/loaders/tiff Modified Files: evas_image_load_tiff.c Log Message: fix unknown buffer content chekc problems =================================================================== RCS file: /cvs/e/e17/libs/evas/src/modules/loaders/tiff/evas_image_load_tiff.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- evas_image_load_tiff.c 5 Nov 2006 05:07:53 -0000 1.7 +++ evas_image_load_tiff.c 28 Oct 2007 10:08:32 -0000 1.8 @@ -126,7 +126,11 @@ if (!ffile) return 0; - fread(&magic_number, sizeof(uint16), 1, ffile); + if (fread(&magic_number, sizeof(uint16), 1, ffile) != 1) + { + fclose(ffile); + return 0; + } /* Apparently rewind(f) isn't sufficient */ fseek(ffile, (long)0, SEEK_SET); ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs