-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Currently, the function readParmayMatrix() assumes that the total number of packets declared in the binary file header (headerPackeNum) exactly matches the actual number of packet headers (MDTCPACK) observed in the file. When this count is inconsistent, for example, due to invalid or truncated data at the end of a .bin file, the function intentionally fails and marks the file as corrupted. The manufacturer informed that this scenario may occur when copying, downloading or transferring files, and that this doesn't mean that the available packets in the file are unreliable. Thus, I suggest not marking the file as corrupr, but using the smaller of the two values for the number of packets (declared vs. observed), and add this information to the QClog.