Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opj_compress crashes when number of resolutions is set to zero #352

Closed
gcode-importer opened this issue May 28, 2014 · 2 comments
Closed

Comments

@gcode-importer
Copy link

Originally reported on Google Code with ID 352

What steps will reproduce the problem?
1. opj_compress .... -n 0


What is the expected output? What do you see instead?

I expect to be warned that number of resolutions should be a positive number greater
than 1. What I actually see is a crash.


What version of the product are you using? On what operating system?

I am using the latest "trunk" on windows.


Please provide any additional information below.


Reported by boxerab on 2014-05-28 19:40:32

@gcode-importer
Copy link
Author

Attached patch adds checks on resolution in the library (not in opj_compress itself,
fails "slowly" but it's safer to add there as it might not show up if opj_compress
does the check).

There also were crash for values > 31 (32 & 33 are said to be valid in the ISO15444-1
but check against tile size was not failing as it should)

Verified against test suite, no regression

Reported by mayeut on 2014-10-10 18:46:04

  • Status changed: Verified

- _Attachment: [issue352.patch](https://storage.googleapis.com/google-code-attachments/openjpeg/issue-352/comment-1/issue352.patch)_

@gcode-importer
Copy link
Author

This issue was closed by revision r2906.

Reported by detonin on 2014-10-21 12:47:58

  • Status changed: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants