glib r7651 - in branches/glib-2-18: . glib
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7651 - in branches/glib-2-18: . glib
- Date: Fri, 14 Nov 2008 23:20:49 +0000 (UTC)
Author: matthiasc
Date: Fri Nov 14 23:20:49 2008
New Revision: 7651
URL: http://svn.gnome.org/viewvc/glib?rev=7651&view=rev
Log:
Bug 557210 â g_compute_checksum_for_* asserts with less than 2 bytes
* glib/gchecksum.c (g_compute_checksum_for_data): Accept
lengths < 2. Patch by Tommi Komulainen
Modified:
branches/glib-2-18/ChangeLog
branches/glib-2-18/glib/gchecksum.c
Modified: branches/glib-2-18/glib/gchecksum.c
==============================================================================
--- branches/glib-2-18/glib/gchecksum.c (original)
+++ branches/glib-2-18/glib/gchecksum.c Fri Nov 14 23:20:49 2008
@@ -1389,7 +1389,6 @@
g_return_val_if_fail (IS_VALID_TYPE (checksum_type), NULL);
g_return_val_if_fail (data != NULL, NULL);
- g_return_val_if_fail (length > 1, NULL);
checksum = g_checksum_new (checksum_type);
if (!checksum)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]