openpreserve / jpylyzer

JP2 (JPEG 2000 Part 1) validator and properties extractor. Jpylyzer was specifically created to check that a JP2 file really conforms to the format's specifications. Additionally jpylyzer is able to extract technical characteristics.
http://jpylyzer.openpreservation.org/
Other
69 stars 28 forks source link

Validation test for cTyp too permissive #199

Closed bitsgalore closed 9 months ago

bitsgalore commented 9 months ago

Validation test for cTypIsValid checks if 0 <= cTyp <= 65535:

https://github.com/openpreserve/jpylyzer/blob/a7b410d735d7a057292bb7a2b773f7afab8b7ab2/jpylyzer/boxvalidator.py#L965

But the standard actually only allows a few values (defined in Table I.16)!

bitsgalore commented 9 months ago

Done:

https://github.com/openpreserve/jpylyzer/commit/9b57a90ffe51ad5acc34c54bf18d87299e05cf6d