diff options
author | Kees Cook <keescook@chromium.org> | 2022-02-06 09:08:20 -0800 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-02-06 10:55:03 -0800 |
commit | 27e9faf415dbf94af19b9c827842435edbc1fbbc (patch) | |
tree | 918848ab170d5af3f4efb9b2def57b8e1a7d545e /init | |
parent | f154066b61dfde618d98fdafc8cadde076c7f222 (diff) |
gcc-plugins/stackleak: Exactly match strings instead of prefixes
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>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions