Skip to content

build-aux,codegen: always fully clear fixed size array

We don't know how many valid bytes will be read in the qmi_message_tlv_read_fixed_size_string() call, so ensure the target array is completely cleared in case we read less than expected.

E.g. for a 2 digit MNC field reported in the LTE System Info TLV, we would find a 3 byte array containing the last byte as 0xFF. In this case, the 3rd byte won't be set in the target array as it wouldn't be valid UTF-8.

Fixes #97 (closed)

Merge request reports