fix this; the previous code gave the wrong md5sum when called in certain
authorDan Winship <danw@src.gnome.org>
Tue, 15 Jan 2008 06:21:58 +0000 (06:21 +0000)
committerDan Winship <danw@src.gnome.org>
Tue, 15 Jan 2008 06:21:58 +0000 (06:21 +0000)
commitcc1404cfc8ad8cb0d3c95307dcc92c48a57d9a3b
tree09787f7a514769d451abb201d56f260e6cbad1bd
parente943c3af74a39ea7d0534bf7ec8f824d17f04764
fix this; the previous code gave the wrong md5sum when called in certain

* glib/gchecksum.c (md5_sum_update): fix this; the previous code
gave the wrong md5sum when called in certain ways with buffers
larger than 64 bytes.
(g_checksum_update): remove the unnecessary "length > 1"
restriction

* tests/checksum-test.c: Rewrite this to be much more exhaustive
(and in particular to test the md5_sum_update bugfix).

svn path=/trunk/; revision=6314
ChangeLog
glib/gchecksum.c
tests/checksum-test.c