Skip to content

Conversation

@mr-intj
Copy link

@mr-intj mr-intj commented Mar 22, 2025

…List Length (2nd word) incorrectly included the padding octet.

Problem was originally detected by CIVA (NITF validation utility), which rejected an otherwise valid NITF with an embedded Nitro-generated CGM.

I took a valid CGM, round-tripped it through Nitro, and compared against the original in a hex editor. In long-form command headers, the parameter list length was including the padding octet after the parameter list in its count of bytes, which is incorrect according to the CGM binary spec (also, the short-form command header doesn't include the padding octet either).

…List Length (2nd word) incorrectly included the padding octet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant