Performing some light root-cause analysis shows a missing initialization of the ivlen variable in pdfio-crypto.c.
If pdf->encryption is PDFIO_ENCRYPTION_RC4_40, then the ivlen variable will not be initialized and later used in _pdfioCryptoRC4Crypt leading to undefined behavior.
Hey my dudes, great project. Keep up the good work.
I currently have a crash when supplying the following pdf to
pdfiototext
- bad.pdfPerforming some light root-cause analysis shows a missing initialization of the
ivlen
variable inpdfio-crypto.c
.If
pdf->encryption
isPDFIO_ENCRYPTION_RC4_40
, then theivlen
variable will not be initialized and later used in_pdfioCryptoRC4Crypt
leading to undefined behavior.Cheers! :beer: