Revision: 1818
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1818&view=rev
Author:   nadvornik
Date:     2009-08-18 20:19:23 +0000 (Tue, 18 Aug 2009)

Log Message:
-----------
fixed possible crash in exif_item_get_integer

Modified Paths:
--------------
    trunk/src/exiv2.cc

Modified: trunk/src/exiv2.cc
===================================================================
--- trunk/src/exiv2.cc  2009-08-03 20:47:14 UTC (rev 1817)
+++ trunk/src/exiv2.cc  2009-08-18 20:19:23 UTC (rev 1818)
@@ -797,7 +797,7 @@
 gint exif_item_get_integer(ExifItem *item, gint *value)
 {
        try {
-               if (!item) return 0;
+               if (!item || exif_item_get_elements(item) == 0) return 0;
                *value = ((Exiv2::Metadatum *)item)->toLong();
                return 1;
        }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to