mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-05-27 06:41:05 +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:
parent
6f38e0b771
commit
f827833d82
@ -13,7 +13,10 @@
|
||||
#include <sys/socket.h>
|
||||
#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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user