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.
This commit is contained in:
parent
f0da50397e
commit
12781b7466
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user