Enlightenment CVS committal Author : lordchaos Project : e17 Module : libs/epsilon
Dir : e17/libs/epsilon/src/lib Modified Files: Epsilon.c Log Message: If our image width or height is 0, don't try to thumbnail - this crashes libpng =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/epsilon/src/lib/Epsilon.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- Epsilon.c 29 Oct 2005 07:37:43 -0000 1.18 +++ Epsilon.c 30 Oct 2005 01:20:36 -0000 1.19 @@ -694,6 +694,11 @@ png_text text_ptr[5]; png_bytep row_ptr, row_data = NULL; + /*If the image has no width or no height, leave here, otherwise libpng gives a crash*/ + if (!th || !tw) { + return 1; + } + GET_TMPNAME (tmpfile, file); /* ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs