glib r6323 - in trunk: . glib



Author: danw
Date: Wed Jan 16 21:28:04 2008
New Revision: 6323
URL: http://svn.gnome.org/viewvc/glib?rev=6323&view=rev

Log:
	* glib/gchecksum.c (md5_sum_update): Fix another bug (which
	doesn't affect the results, but may cause it to read bad memory).


Modified:
   trunk/ChangeLog
   trunk/glib/gchecksum.c

Modified: trunk/glib/gchecksum.c
==============================================================================
--- trunk/glib/gchecksum.c	(original)
+++ trunk/glib/gchecksum.c	Wed Jan 16 21:28:04 2008
@@ -317,7 +317,7 @@
       bit = MD5_DATASIZE - bit;
       if (length < bit)
         {
-          memcpy (p, data, bit);
+          memcpy (p, data, length);
           return;
         }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]