Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5345

IllegalArgumentException: Input buffer too short in StandardSecurityHandler.computeRC4key

    XMLWordPrintableJSON

Details

    Description

      java.lang.IllegalArgumentException: Input buffer too short
              at java.base/java.security.MessageDigest.update(MessageDigest.java:347)
              at org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.computeRC4key(StandardSecurityHandler.java:894)
              at org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.getUserPassword(StandardSecurityHandler.java:617)
              at org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.isOwnerPassword(StandardSecurityHandler.java:595)
              at org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.prepareForDecryption(StandardSecurityHandler.java:213)
              at org.apache.pdfbox.pdfparser.COSParser.prepareDecryption(COSParser.java:2532)
      

      Probably because of PDFBOX-5312

      Attachments

        1. poppler-89422-0.pdf
          1 kB
          Tilman Hausherr

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              tilman Tilman Hausherr
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: