itext-java icon indicating copy to clipboard operation
itext-java copied to clipboard

fix possible ArithmeticException

Open suoyi123wang opened this issue 2 years ago • 1 comments

in method com.itextpdf.text.pdf.crypto.ARCFOUREncryption.prepareARCFOURKey image The parameter len is used as a divisor, but it is not checked in advance whether it is zero, and it is likely to trigger ArithmeticException

suoyi123wang avatar Jun 16 '22 07:06 suoyi123wang

Additionally, there are no tests included in this PR.

michaeldemey avatar Jun 16 '22 11:06 michaeldemey