Modbus Energy driver writes random data after the 0 termination for the string

Modbus Energy driver writes random data after the 0 termination for the string

Summary

When writing a value "abcd" in the runtime to a string variable with a length of 130 characters of a modbus energy driver, the string abcd is written with null termination, followed by random data for the rest of the string length, if the option for strings (Modbusstandard, BigEndian) is set.


Description

When writing a value "abcd" in the runtime to a string variable with a length of 130 characters of a modbus energy driver, the string abcd is written with null termination, followed by random data for the rest of the string length, if the option for strings (Modbusstandard, BigEndian) is set.


Solution

String buffer is nulled before the actual data string is copied.

Information




Issue Number: 33544
Fixed on Date: 28.1.2015
Versions: 7.50 0 BUILD 25796