[ https://issues.apache.org/jira/browse/PDFBOX-1583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrian Nistor updated PDFBOX-1583: ---------------------------------- Attachment: patch.diff patch > wasted work in PDDocument.addSignature(...) > ------------------------------------------- > > Key: PDFBOX-1583 > URL: https://issues.apache.org/jira/browse/PDFBOX-1583 > Project: PDFBox > Issue Type: Bug > Affects Versions: 1.8.1 > Reporter: Adrian Nistor > Labels: patch > Attachments: patch.diff > > > The problem appears in version 1.8.1 and in revision 1476791. I > attached a one-line patch that fixes it. This problem is similar to > the already fixed PDFBOX-1447 and PDFBOX-1457. > In method "PDDocument.addSignature", the loop over "cosObjects" should > break immediately after "annotNotFound" and "sigFieldNotFound" are set > to "false". All the iterations after "annotNotFound" and > "sigFieldNotFound" are set to "false" do not perform any useful work > because the two "if" statements performing useful work depend on > "annotNotFound" and "sigFieldNotFound". -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira