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

Assertion failure in jas_image.c:1010 #353

Closed
Vancir opened this issue Feb 22, 2023 · 1 comment
Closed

Assertion failure in jas_image.c:1010 #353

Vancir opened this issue Feb 22, 2023 · 1 comment

Comments

@Vancir
Copy link

Vancir commented Feb 22, 2023

I saw there are some issues about this failure before. #345 #338
It seems version 4.0.0 have patched this error. But I can still trigger this failure on the latest code (commit 294db12)

minimized poc: min_poc.zip

Steps to reproduce

git clone https://github.com/jasper-software/jasper.git && cd jasper
mkdir static_build && cd static_build
cmake -DJAS_ENABLE_SHARED=false -DJAS_ENABLE_DOC=false ..
make -j4
# ----------------------------

➜  demo git:(main) ✗ ./jasper/static_build/src/app/jasper -f min_poc -F test.jp2 -T jp2 
jasper: /data/demo/jasper/src/libjasper/base/jas_image.c:1010: inttobits: Assertion `v >= 0 || sgnd' failed.
[1]    2498970 abort      ./jasper/static_build/src/app/jasper -f min_poc -F test.jp2 -T jp2
@mdadams
Copy link
Collaborator

mdadams commented Mar 20, 2023

This problem is fixed now on the master branch. There was an integer overflow occurring in the processing of the PNM data.

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