-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 error in function ASCII85Decode.decode #312
Labels
is-bug
From a users perspective, this is a bug - a violation of the expected behavior with a compliant PDF
Comments
MartinThoma
added
the
is-bug
From a users perspective, this is a bug - a violation of the expected behavior with a compliant PDF
label
Apr 7, 2022
MartinThoma
added a commit
that referenced
this issue
Apr 10, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
is-bug
From a users perspective, this is a bug - a violation of the expected behavior with a compliant PDF
File filters.py, class ASCII85Decode:
line 313: assert b < (2**32 - 1)
If the b value is exactly (2^32 - 1), which is legal value, assertion will fail.
I believe assertion should include (2^32 - 1) meaning:
assert b <= (232 - 1)
or
assert b < (232 )
The text was updated successfully, but these errors were encountered: