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.
Thanks, both the image and the code look really useful. TLM validation is already on the wish list as per issue 29, so I've added a comment there with your links.
It should be possible to parse TLM marker and validate if all tile lengths are included. Here is an example of an image with a corrupt TLM marker:
https://l3harrisgeospatial-webcontent.s3.amazonaws.com/MM_Samples/Pleiades_ORTHO_UTM_BUNDLE.zip
also, here is some code that parses a TLM marker