[Gnucash-changes] r13331 - gnucash/trunk - Don't reference
uninitialized memory.
David Hampton
hampton at cvs.gnucash.org
Mon Feb 20 16:06:33 EST 2006
Author: hampton
Date: 2006-02-20 16:06:32 -0500 (Mon, 20 Feb 2006)
New Revision: 13331
Trac: http://svn.gnucash.org/trac/changeset/13331
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/lib/libqof/qof/guid.c
Log:
Don't reference uninitialized memory.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-02-20 20:47:01 UTC (rev 13330)
+++ gnucash/trunk/ChangeLog 2006-02-20 21:06:32 UTC (rev 13331)
@@ -1,3 +1,7 @@
+2006-02-20 David Hampton <hampton at employees.org>
+
+ * lib/libqof/qof/guid.c: Don't reference uninitialized memory.
+
2006-02-20 Neil Williams <linux at codehelp.co.uk>
* lib/libqof/qof/gnc-event.c :
@@ -17,7 +21,6 @@
* lib/libqof/qof/qof.h : Replace files.
* lib/libqof/qof/Makefile.am : Replace files.
-
2006-02-20 David Hampton <hampton at employees.org>
* src/gnome/dialog-scheduledxaction.c:
Modified: gnucash/trunk/lib/libqof/qof/guid.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/guid.c 2006-02-20 20:47:01 UTC (rev 13330)
+++ gnucash/trunk/lib/libqof/qof/guid.c 2006-02-20 21:06:32 UTC (rev 13331)
@@ -257,7 +257,7 @@
if (de == NULL)
break;
- md5_process_bytes(de, sizeof(struct dirent), &guid_context);
+ md5_process_bytes(de, strlen(de->d_name), &guid_context);
total += sizeof(struct dirent);
result = snprintf(filename, sizeof(filename),
More information about the gnucash-changes
mailing list