diff options
author | Kees Cook <[email protected]> | 2022-09-01 13:57:29 -0700 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-09-06 22:24:37 -0400 |
commit | 1ce871de4f86432be4b40b7a19bd205aedc654bf (patch) | |
tree | b9d0d484064b346a683d6291f8af2a9cd2f0ed3a /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 7eff437b5ee1309b34667844361c6bbb5c97df05 (diff) |
scsi: esas2r: Use flex array destination for memcpy()
In preparation for FORTIFY_SOURCE performing run-time destination buffer
bounds checking for memcpy(), specify the destination output buffer
explicitly, instead of asking memcpy() to write past the end of what looked
like a fixed-size object. Silences future run-time warning:
memcpy: detected field-spanning write (size 80) of single field "trc + 1" (size 64)
There is no binary code output differences from this change.
Link: https://lore.kernel.org/r/[email protected]
Cc: Bradley Grove <[email protected]>
Cc: "James E.J. Bottomley" <[email protected]>
Cc: "Martin K. Petersen" <[email protected]>
Cc: [email protected]
Reviewed-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions