diff options
author | JP Rosevear <jpr@ximian.com> | 2001-10-18 14:46:01 +0000 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-10-18 14:46:01 +0000 |
commit | 3c964d7328d2620eb41b9494800c3b0453e4407a (patch) | |
tree | f8b897d3bb65c9ab783b9f9c6d40d5658f88cc9d | |
parent | be2c123d6ea8f6739ecfd01d28c91a87524707e5 (diff) | |
download | libsoup-3c964d7328d2620eb41b9494800c3b0453e4407a.tar.gz |
the array length assertion should be >= rather than less than.
2001-10-18 JP Rosevear <jpr@ximian.com>
* src/libsoup/soup-transfer.c (remove_block_at_index): the array
length assertion should be >= rather than less than.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | libsoup/soup-transfer.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2001-10-18 JP Rosevear <jpr@ximian.com> + + * src/libsoup/soup-transfer.c (remove_block_at_index): the array + length assertion should be >= rather than less than. + 2001-10-17 Alex Graveley <alex@ximian.com> * src/libsoup/soup-transfer.c (read_content_length): Don't call diff --git a/libsoup/soup-transfer.c b/libsoup/soup-transfer.c index f32cf89c..e622531e 100644 --- a/libsoup/soup-transfer.c +++ b/libsoup/soup-transfer.c @@ -133,7 +133,7 @@ remove_block_at_index (GByteArray *arr, gint offset, gint length) gchar *data; g_return_if_fail (length != 0); - g_assert (arr->len < offset + length); + g_assert (arr->len >= offset + length); data = &arr->data [offset]; |