Revision: 1914
http://geeqie.svn.sourceforge.net/geeqie/?rev=1914&view=rev
Author: mow
Date: 2010-02-28 15:17:12 +0000 (Sun, 28 Feb 2010)
Log Message:
-----------
Fix a small issue with strptime
strptime do not initialize all fields. So the undefined fields could end
in crash later on.
Modified Paths:
--------------
trunk/src/exif-common.c
Modified: trunk/src/exif-common.c
===================================================================
--- trunk/src/exif-common.c 2010-02-27 23:31:07 UTC (rev 1913)
+++ trunk/src/exif-common.c 2010-02-28 15:17:12 UTC (rev 1914)
@@ -207,6 +207,7 @@
}
/* Convert the stuff into a tm struct */
+ memset(&tm, 0, sizeof(tm)); /* Uh, strptime could let garbage in tm! */
if (text && strptime(text, "%Y:%m:%d %H:%M:%S", &tm))
{
buflen = strftime(buf, sizeof(buf), "%x %X", &tm);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn