diff options
| author | Kees Cook <[email protected]> | 2021-08-06 13:14:22 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-08-10 12:09:37 +0200 |
| commit | 859c57f606c78cb8b33cabbd22ad1d4ff9f80e4e (patch) | |
| tree | 84f71e13b26942af5b0a94f35ea6444800655fe5 /tools/perf/scripts/python/bin/flamegraph-record | |
| parent | 1b3c6cccda3f012ffab8287f1d6151492055340e (diff) | |
staging: rtl8723bs: Avoid field-overflowing memcpy()
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memcpy(), memmove(), and memset(), avoid
intentionally writing across neighboring fields.
Adjust memcpy() destination to be the named structure itself, rather than
the first member, allowing memcpy() to correctly reason about the size.
"objdump -d" shows no object code changes.
Cc: Ross Schmidt <[email protected]>
Cc: Joe Perches <[email protected]>
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/flamegraph-record')
0 files changed, 0 insertions, 0 deletions