Skip to content

Handling of partially corrupted Parmay Matrix files #88

@jhmigueles

Description

@jhmigueles

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions