diff options
author | Kees Cook <keescook@chromium.org> | 2021-06-16 13:39:51 -0700 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2021-06-22 18:23:35 +0300 |
commit | 70ca8441ebfc4412dc9d3c56409e73dba959ab34 (patch) | |
tree | 8ea07c74e12ea05739f6ba371907fe45debedef5 /drivers/net/wireless/marvell/mwl8k.c | |
parent | b38678a73c4d8a3616ca14713154e062b4c4db63 (diff) |
orinoco: 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 array fields.
Validate the expected key size and introduce a wrapping structure
to use as the multi-field memcpy() destination so that overflows
can be correctly detected.
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210616203952.1248910-1-keescook@chromium.org
Diffstat (limited to 'drivers/net/wireless/marvell/mwl8k.c')
0 files changed, 0 insertions, 0 deletions