[libsoup] websocket-test: Fix out of bounds read
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] websocket-test: Fix out of bounds read
- Date: Wed, 25 Nov 2020 21:25:53 +0000 (UTC)
commit e81dd30138a31abc01ffacedaecbe145c251fde6
Author: Patrick Griffis <pgriffis igalia com>
Date: Wed Nov 25 15:17:05 2020 -0600
websocket-test: Fix out of bounds read
tests/websocket-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/websocket-test.c b/tests/websocket-test.c
index a947f4f4..95ed7b12 100644
--- a/tests/websocket-test.c
+++ b/tests/websocket-test.c
@@ -1356,7 +1356,7 @@ send_invalid_encode_length_server_thread (gpointer user_data)
gsize written;
GError *error = NULL;
- header_size = test->payload->len == 125 ? 6 : 10;
+ header_size = test->payload->len == 125 ? 5 : 10;
g_output_stream_write_all (g_io_stream_get_output_stream (test->test->raw_server),
test->header, header_size, &written, NULL, &error);
g_assert_no_error (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]