-
Notifications
You must be signed in to change notification settings - Fork 122
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
index out of ranges and assertion failures #189
Comments
I have found 4 more different crashes. To reproduce.
|
I believe I've run into a similar issue, although I don't see the an example that panics in the same location as what I am experiencing so will paste it below:
Namely: |
@aaronleopold could you try with the git version? |
Hey 👋 thanks for responding so quickly! Unfortunately, it still panicked using the latest on main
|
It is fixed. |
Or running the read.rs example on the file. |
Thank you! I confirmed locally the panic does not happen now
[pdf/src/object/types.rs:1056] &names = [
String(
"iTextJS_0",
),
]
I ran it against the code with the fix (attached to this comment) but can re-run it with the previous commit if that is helpful. |
Thank you, that is all I need. Now I just need to make sense of it. |
From PDF32000, 7.9.6. Table 36 Names (Root and leaf nodes only; required in leaf nodes; present in the root node if and So I think I will just ignore it as is, because the spec does not mention how it should be decoded. |
Sorry, there are 3 more
crash-282.pdf
pdf/pdf/src/enc.rs
Line 501 in 677152f
crash-538.pdf
pdf/pdf/src/crypt.rs
Line 37 in 677152f
crash-203.pdf
pdf/pdf/src/crypt.rs
Line 562 in 677152f
The text was updated successfully, but these errors were encountered: