microstrain_mips icon indicating copy to clipboard operation
microstrain_mips copied to clipboard

Minor fix: avoid buffer overflow in example code

Open maroneze opened this issue 2 years ago • 0 comments

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.

maroneze avatar Apr 01 '22 07:04 maroneze