From a4b2927884ded37556ea5009e10fffe12d8a6706 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Fri, 7 Aug 2015 18:58:42 +0100 Subject: Initialise the length fields of the reader struct in decode_message, even if the message is invalid, fixes a crash where the message was too short --- tests/test_olm_decrypt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_olm_decrypt.cpp b/tests/test_olm_decrypt.cpp index f089665..3f2a994 100644 --- a/tests/test_olm_decrypt.cpp +++ b/tests/test_olm_decrypt.cpp @@ -3,7 +3,8 @@ const char * test_cases[] = { "41776f", - "7fff6f0101346d671201" + "7fff6f0101346d671201", + "ee776f41496f674177804177778041776f6716670a677d6f670a67c2677d", }; -- cgit v1.2.3