aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2023-01-05 22:17:04 -0800
committerLaurent Pinchart <[email protected]>2023-01-15 23:45:15 +0200
commitb839212988575c701aab4d3d9ca15e44c87e383c (patch)
tree6d1ef5ff49bc25feb5a4f9e7697c82f008942aa2 /tools/perf/scripts/python/bin
parent136effa754b57632f99574fc4a3433e0cfc031d9 (diff)
media: uvcvideo: Silence memcpy() run-time false positive warnings
The memcpy() in uvc_video_decode_meta() intentionally copies across the length and flags members and into the trailing buf flexible array. Split the copy so that the compiler can better reason about (the lack of) buffer overflows here. Avoid the run-time false positive warning: memcpy: detected field-spanning write (size 12) of single field "&meta->length" at drivers/media/usb/uvc/uvc_video.c:1355 (size 1) Additionally fix a typo in the documentation for struct uvc_meta_buf. Reported-by: [email protected] Link: https://bugzilla.kernel.org/show_bug.cgi?id=216810 Signed-off-by: Kees Cook <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions