Kees Cook f36dd10d1b gcc-plugins/stackleak: Exactly match strings instead of prefixes
[ Upstream commit 27e9faf415dbf94af19b9c827842435edbc1fbbc ]

Since STRING_CST may not be NUL terminated, strncmp() was used for check
for equality. However, this may lead to mismatches for longer section
names where the start matches the tested-for string. Test for exact
equality by checking for the presences of NUL termination.

Cc: Alexander Popov <alex.popov@linux.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-15 14:18:22 +02:00
..
2021-05-22 11:38:30 +02:00
2021-05-22 11:38:30 +02:00
2019-08-12 15:00:37 -06:00
2019-09-22 10:34:46 -07:00
2019-05-06 11:12:09 -07:00
2021-05-22 11:38:30 +02:00
2021-05-22 11:38:30 +02:00