Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Kees Cook <[email protected]>
- Loading branch information