Enlightenment CVS committal

Author  : atmosphere
Project : e17
Module  : libs/epsilon

Dir     : e17/libs/epsilon/src/lib/exiftags


Modified Files:
        jpeg.c 


Log Message:
fix reading past EOF on non-jpg images
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/epsilon/src/lib/exiftags/jpeg.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- jpeg.c      9 Oct 2004 18:54:47 -0000       1.1
+++ jpeg.c      14 Oct 2004 02:32:36 -0000      1.2
@@ -29,7 +29,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $Id: jpeg.c,v 1.1 2004/10/09 18:54:47 atmosphere Exp $
+ * $Id: jpeg.c,v 1.2 2004/10/14 02:32:36 atmosphere Exp $
  */
 
 /*
@@ -246,14 +246,15 @@
        /* First time through. */
 
        if (first && topmkr() != JPEG_M_SOI) {
+               return(FALSE);
                /*
                exifwarn("doesn't appear to be a JPEG file; "
                    "searching for start of image");
-               */
                if (nxtmkr() != JPEG_M_SOI) {
                        exifdie("start of image not found");
                        return(FALSE);
                }
+               */
        }
 
        /* Look for interesting markers. */




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to