From: Dan Winship Date: Wed, 16 Jan 2008 21:28:04 +0000 (+0000) Subject: Fix another bug (which doesn't affect the results, but may cause it to X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=f1332511ee2028a9c0cd5cc90f00fd8905f566fd;p=dana%2Fcg-glib.git Fix another bug (which doesn't affect the results, but may cause it to * glib/gchecksum.c (md5_sum_update): Fix another bug (which doesn't affect the results, but may cause it to read bad memory). svn path=/trunk/; revision=6323 --- diff --git a/ChangeLog b/ChangeLog index c3b720ee..3772b477 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-16 Dan Winship + + * glib/gchecksum.c (md5_sum_update): Fix another bug (which + doesn't affect the results, but may cause it to read bad memory). + 2008-01-15 Alexander Larsson * glib/gurifuncs.c: diff --git a/glib/gchecksum.c b/glib/gchecksum.c index 8de9d127..c7108adf 100644 --- a/glib/gchecksum.c +++ b/glib/gchecksum.c @@ -317,7 +317,7 @@ md5_sum_update (Md5sum *md5, bit = MD5_DATASIZE - bit; if (length < bit) { - memcpy (p, data, bit); + memcpy (p, data, length); return; }