diff options
| author | Francis Laniel <[email protected]> | 2020-12-15 20:43:50 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-12-15 22:46:16 -0800 |
| commit | 33e56a59e64dfb68778e5da0be13f0c47dc5d445 (patch) | |
| tree | 7dad2afbc8c1984d3434b3bfb23f8c3cb5addc3f /tools/perf/scripts/python/flamegraph.py | |
| parent | d96938daae2a2ae20e5d3d38ddb85d8afdaee628 (diff) | |
string.h: add FORTIFY coverage for strscpy()
The fortified version of strscpy ensures the following before vanilla strscpy
is called:
1. There is no read overflow because we either size is smaller than
src length or we shrink size to src length by calling fortified
strnlen.
2. There is no write overflow because we either failed during
compilation or at runtime by checking that size is smaller than dest
size.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Francis Laniel <[email protected]>
Acked-by: Kees Cook <[email protected]>
Cc: Daniel Axtens <[email protected]>
Cc: Daniel Micay <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions