summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intersil
diff options
context:
space:
mode:
authorKees Cook2017-05-06 00:38:41 +0200
committerKalle Valo2017-05-22 17:27:22 +0200
commite48d661eb13f2f83861428f001c567fdb3f317e8 (patch)
tree3a588ae021bfe8b63c907818ca2c06510a905e34 /drivers/net/wireless/intersil
parentorinoco_usb: convert request_context.refcount from atomic_t to refcount_t (diff)
downloadkernel-qcow2-linux-e48d661eb13f2f83861428f001c567fdb3f317e8.tar.gz
kernel-qcow2-linux-e48d661eb13f2f83861428f001c567fdb3f317e8.tar.xz
kernel-qcow2-linux-e48d661eb13f2f83861428f001c567fdb3f317e8.zip
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 <danielmicay@gmail.com> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/intersil')
0 files changed, 0 insertions, 0 deletions