Skip to content

Commit

Permalink
Set conservative strictness level while reading signed document revis…
Browse files Browse the repository at this point in the history
…ions

Autoported commit.
Original commit hash: [a06646c22]
  • Loading branch information
AnhelinaM authored and iText-CI committed Jul 19, 2024
1 parent 375cdd4 commit 4df2f95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,9 @@ private ValidationReport Validate(String signatureName) {
foreach (String fieldName in signatureNames) {
ValidationReport subReport = new ValidationReport();
try {
using (PdfDocument doc = new PdfDocument(new PdfReader(util.ExtractRevision(fieldName)), new DocumentProperties
().SetEventCountingMetaInfo(metaInfo))) {
using (PdfDocument doc = new PdfDocument(new PdfReader(util.ExtractRevision(fieldName)).SetStrictnessLevel
(PdfReader.StrictnessLevel.CONSERVATIVE), new DocumentProperties().SetEventCountingMetaInfo(metaInfo))
) {
subReport.Merge(ValidateLatestSignature(doc));
}
}
Expand Down
2 changes: 1 addition & 1 deletion port-hash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9edc3b01ab28f67c9c46fdfeec48979abad3fd26
a06646c229f7e94041f4b6c778397fd4af03c1f3

0 comments on commit 4df2f95

Please sign in to comment.