1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-05-28 17:41:28 +03:00

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 <jon@jonsimons.org>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jon Simons 2018-05-10 16:46:57 -04:00 committed by Andreas Schneider
parent 6f38e0b771
commit f827833d82

View File

@ -13,7 +13,10 @@
#include <sys/socket.h> #include <sys/socket.h>
#include "socket.c" #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 key[]="iekaeshoa7ooCie2shai8shahngee3ONsee3xoishooj0ojei6aeChieth1iraPh";
uint8_t iv[]="eixaxughoomah4ui7Aew3ohxuolaifuu"; uint8_t iv[]="eixaxughoomah4ui7Aew3ohxuolaifuu";
uint8_t mac[]="thook2Jai0ahmahyae7ChuuruoPhee8Y"; uint8_t mac[]="thook2Jai0ahmahyae7ChuuruoPhee8Y";