From: Dmitry V. Levin Date: Fri, 17 Mar 2017 20:15:20 +0000 (+0000) Subject: tests: check for out of bounds fetch in parsers of stat family syscalls X-Git-Tag: v4.17~153 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12781b74663bfd652e15ee56de18e787503a0064;p=strace tests: check for out of bounds fetch in parsers of stat family syscalls * tests/xstatx.c (main): Create STRUCT_STAT object using TAIL_ALLOC_OBJECT_CONST_PTR. --- diff --git a/tests/xstatx.c b/tests/xstatx.c index 6eb760b5..c7298b9b 100644 --- a/tests/xstatx.c +++ b/tests/xstatx.c @@ -208,7 +208,7 @@ main(void) static const char full[] = "/dev/full"; # endif static const char sample[] = TEST_SYSCALL_STR ".sample"; - STRUCT_STAT st[2]; + TAIL_ALLOC_OBJECT_CONST_PTR(STRUCT_STAT, st); int rc;