Closed stweil closed 8 years ago
Maybe a test case for empty JP2 files (results from some broken software) would be reasonable.
Thanks, I had just come across this issue myself , and was working on a fix already. Anyway, I liked your patch better than mine, so I decided to use that.
I'll add an empty file to the test cases.
Added empty JP2 test case: https://github.com/openpreserve/jpylyzer-test-files/commit/ff4c37abd3871443d78d314254115a0822aeadc6
Calling mmap with an empty file raises a ValueError exception.
Signed-off-by: Stefan Weil sw@weilnetz.de