Commit 55a15b3a authored by Javier Carrasco's avatar Javier Carrasco Committed by Johan Hovold
Browse files

USB: serial: garmin_gps: annotate struct garmin_packet with __counted_by



Use the __counted_by compiler attribute for the data[] flexible array
member to improve the results of array bound sanitizers.

Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
Signed-off-by: default avatarJavier Carrasco <javier.carrasco.cruz@gmail.com>
Reviewed-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: default avatarKees Cook <kees@kernel.org>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 9f4dc051
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment