diff options
| author | Kees Cook <[email protected]> | 2022-02-06 17:08:20 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2022-02-06 18:55:03 +0000 |
| commit | 27e9faf415dbf94af19b9c827842435edbc1fbbc (patch) | |
| tree | 918848ab170d5af3f4efb9b2def57b8e1a7d545e /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | gcc-plugins/stackleak: Provide verbose mode (diff) | |
| download | kernel-27e9faf415dbf94af19b9c827842435edbc1fbbc.tar.gz kernel-27e9faf415dbf94af19b9c827842435edbc1fbbc.zip | |
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]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
