summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2022-02-06 09:08:20 -0800
committerKees Cook <keescook@chromium.org>2022-02-06 10:55:03 -0800
commit27e9faf415dbf94af19b9c827842435edbc1fbbc (patch)
tree918848ab170d5af3f4efb9b2def57b8e1a7d545e /init
parentf154066b61dfde618d98fdafc8cadde076c7f222 (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