ros-drivers / microstrain_mips

Other
26 stars 111 forks source link

Minor fix: avoid buffer overflow in example code #35

Open maroneze opened 2 years ago

maroneze commented 2 years ago

As indicated by Frama-C, the string System Initialization (copied to temp_string) requires 22 bytes, including the null terminator, but the buffer was declared with only 20.

The change has not been ported to the test cases which do not print System Initialization.