aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2017-05-05 15:38:41 -0700
committerKalle Valo <[email protected]>2017-05-22 18:27:22 +0300
commite48d661eb13f2f83861428f001c567fdb3f317e8 (patch)
tree3a588ae021bfe8b63c907818ca2c06510a905e34 /tools/perf/scripts/python
parent0aeffa7041d84976432e903cb04e8d7b0edf31ed (diff)
ray_cs: Avoid reading past end of buffer
Using memcpy() from a buffer that is shorter than the length copied means the destination buffer is being filled with arbitrary data from the kernel rodata segment. In this case, the source was made longer, since it did not match the destination structure size. Additionally removes a needless cast. This was found with the future CONFIG_FORTIFY_SOURCE feature. Cc: Daniel Micay <[email protected]> Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions