From baab4501f689ec8d90ea9fe1d83336e05d8e98a4 Mon Sep 17 00:00:00 2001 From: RomanBapst Date: Tue, 12 Jul 2022 21:06:19 +0300 Subject: [PATCH] gps_inject_data: fixed integer overflow - array length of data was increased without changing the data type of the variable holding the length Signed-off-by: RomanBapst --- msg/gps_inject_data.msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msg/gps_inject_data.msg b/msg/gps_inject_data.msg index 1cdaca85ea..1179f3a0e0 100644 --- a/msg/gps_inject_data.msg +++ b/msg/gps_inject_data.msg @@ -2,7 +2,7 @@ uint64 timestamp # time since system start (microseconds) uint32 device_id # unique device ID for the sensor that does not change between power cycles -uint8 len # length of data +uint16 len # length of data uint8 flags # LSB: 1=fragmented uint8[300] data # data to write to GPS device (RTCM message)