mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
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:
parent
f0749cc896
commit
f1332511ee
@ -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>
|
2008-01-15 Alexander Larsson <alexl@redhat.com>
|
||||||
|
|
||||||
* glib/gurifuncs.c:
|
* glib/gurifuncs.c:
|
||||||
|
@ -317,7 +317,7 @@ md5_sum_update (Md5sum *md5,
|
|||||||
bit = MD5_DATASIZE - bit;
|
bit = MD5_DATASIZE - bit;
|
||||||
if (length < bit)
|
if (length < bit)
|
||||||
{
|
{
|
||||||
memcpy (p, data, bit);
|
memcpy (p, data, length);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user