aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorJavier Carrasco <[email protected]>2024-06-19 21:42:45 +0200
committerJohan Hovold <[email protected]>2024-07-05 14:01:43 +0200
commitdf8c0b8a03e871431587a13a6765cb4c601e1573 (patch)
treece46c80dc8dca02d2394bdb6bbbb2dd177565250 /lib/test_fortify/write_overflow-strncpy-src.c
parent55a15b3a713a3f24360cf9d8dcfd2a3e337321d6 (diff)
USB: serial: garmin_gps: use struct_size() to allocate pkt
Use the struct_size macro to calculate the size of the pkt, which includes a trailing flexible array. Suggested-by: Nathan Chancellor <[email protected]> Signed-off-by: Javier Carrasco <[email protected]> Reviewed-by: Gustavo A. R. Silva <[email protected]> Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Johan Hovold <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions