pdf icon indicating copy to clipboard operation
pdf copied to clipboard

pdf-0.7.2/src/xref.rs:111:43 thread '<unnamed>' panicked

Open gessel opened this issue 3 years ago • 2 comments

I am having crashes using czkawka_gui and the logs indicate the problem is in the pdf parsing stack (checking for "broken" files)

PDF-rs library crashed when opening ""/one/file.pdf"" pdf, and if it is not reported, please report bug here - https://github.com/pdf-rs/pdf
thread '<unnamed>' panicked at 'index out of bounds: the len is 7 but the index is 7', /home/gessel/.cargo/registry/src/github.com-1ecc6299db9ec823/pdf-0.7.2/src/xref.rs:111:43
... [many, many logged]
PDF-rs library crashed when opening ""/another/file.pdf"" pdf, and if it is not reported, please report bug here - https://github.com/pdf-rs/pdf

thread '<unknown>' has overflowed its stack
fatal runtime error: stack overflow
Aborted

gessel avatar Jul 23 '22 12:07 gessel

Looks like it is using an old version. Line 111 currently contains a comment...

s3bk avatar Jul 23 '22 12:07 s3bk

Yes, it uses the last release on crates.io: pdf = "0.7.2". I need to check if all blockers from releasing the next version have been resolved.

s3bk avatar Jul 23 '22 12:07 s3bk