- Open "Modbus Message Parser" dialog box.
- Type "00" (e.g. 1 byte).
- Press the "Parse" button.
- Crash.
Code analysis shows that the program crashes because it does not check the minimum size of the data entered by the user. Specifically, the program tries to calculate a checksum from two bytes, but only one is entered. This results in a negative length and an array index out-of-bounds error.
Version 1.12.0.
Code analysis shows that the program crashes because it does not check the minimum size of the data entered by the user. Specifically, the program tries to calculate a checksum from two bytes, but only one is entered. This results in a negative length and an array index out-of-bounds error.
Version 1.12.0.