From f827833d822d1bff4cdfd28c91a1c026fe46b1ce Mon Sep 17 00:00:00 2001 From: Jon Simons Date: Thu, 10 May 2018 16:46:57 -0400 Subject: [PATCH] tests: fix torture_packet.c `test_data` Make the `test_data` larger so that tests do not read beyond its length. Observed in testing with an `-fsanitize=address` build locally. Signed-off-by: Jon Simons Reviewed-by: Andreas Schneider --- tests/unittests/torture_packet.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unittests/torture_packet.c b/tests/unittests/torture_packet.c index a01ea218..729aaccd 100644 --- a/tests/unittests/torture_packet.c +++ b/tests/unittests/torture_packet.c @@ -13,7 +13,10 @@ #include #include "socket.c" -uint8_t test_data[]="AThis is test data. Use it to check the validity of packet functions"; +uint8_t test_data[]="AThis is test data. Use it to check the validity of packet functions" + "AThis is test data. Use it to check the validity of packet functions" + "AThis is test data. Use it to check the validity of packet functions" + "AThis is test data. Use it to check the validity of packet functions"; uint8_t key[]="iekaeshoa7ooCie2shai8shahngee3ONsee3xoishooj0ojei6aeChieth1iraPh"; uint8_t iv[]="eixaxughoomah4ui7Aew3ohxuolaifuu"; uint8_t mac[]="thook2Jai0ahmahyae7ChuuruoPhee8Y";