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

freeze with a crafted bmp #996

Closed
asarubbo opened this issue Aug 18, 2017 · 4 comments
Closed

freeze with a crafted bmp #996

asarubbo opened this issue Aug 18, 2017 · 4 comments

Comments

@asarubbo
Copy link

The attached testcase freezes the process without exit.

command to reproduce:

opj_compress -r 20,10,1 -jpip -EPH -SOP -cinema2K 24 -n 1 -i $FILE -o null.j2k

2.hangs.zip

@asarubbo
Copy link
Author

With the current master I still get the freeze with another file
11.hangs.zip

@asarubbo
Copy link
Author

Another file which freezes:
15.hangs.zip

@rouault
Copy link
Collaborator

rouault commented Aug 18, 2017

The issue with 11.hangs.zip and 15.hangs.zip is completely different; They are BMP files of huge dimensions. So compressions takes a lot of time / memory (potentially crashing the process)

$ file ../11.hangs.bmp
../11.hangs.bmp: PC bitmap, Windows 3.x format, 16711929 x 1 x 8

$ file ../15.hangs.bmp
../15.hangs.bmp: PC bitmap, Windows 3.x format, 369098753 x 1 x 4

@asarubbo
Copy link
Author

if you think I need to open a separate bug I will.

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

No branches or pull requests

2 participants