]> Kevux Git Server - fll/commit
Security: Incorrect array size used in test.
authorKevin Day <thekevinday@gmail.com>
Fri, 4 Mar 2022 04:56:56 +0000 (22:56 -0600)
committerKevin Day <thekevinday@gmail.com>
Fri, 4 Mar 2022 04:56:56 +0000 (22:56 -0600)
commit8eeff5cf48ee128f4038747affcf70cd8dc9fe00
treeda9536c68396f3612cb51eef8efde98d9cc5654d
parent02289af5ea0087a9f597c104b4cbaed71f68f482
Security: Incorrect array size used in test.

The groups is testing an array of size 3 but it is only defines as size 2.
This test itself effectively has an invalid read (a stack overflow).

CLang properly identifies this problem but GCC does not.
level_0/f_control_group/tests/unit/c/test-control_group-copy.c