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
This commit is contained in:
Dan Winship 2008-01-16 21:28:04 +00:00
parent f0749cc896
commit f1332511ee
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-01-16 Dan Winship <danw@gnome.org>
* 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 <alexl@redhat.com>
* glib/gurifuncs.c:

View File

@ -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;
}