CamlPDF changes

This commit is contained in:
John Whitington 2025-02-21 13:01:17 +00:00
parent ba987b9daa
commit 26ebce4989
2 changed files with 3 additions and 2 deletions

View File

@ -15,6 +15,7 @@ Fixes:
o Harden auto-compression against malformed streams
o Add backup JPEG dimensions method in Cpdfimage
o Correct object stream behaviour when splitting
* = Supported by a grant from NLnet

View File

@ -1494,7 +1494,7 @@ let check_unicode tu n =
let matterhorn_31_028 _ _ pdf =
iter
(fun i ->
let tu = Pdftext.parse_tounicode pdf (Pdf.lookup_obj pdf i) in
let tu = (Pdfcmap.parse_tounicode pdf (Pdf.lookup_obj pdf i)).map in
if check_unicode tu 0 then merror ())
(all_tounicodes pdf)
@ -1503,7 +1503,7 @@ let matterhorn_31_028 _ _ pdf =
let matterhorn_31_029 _ _ pdf =
iter
(fun i ->
let tu = Pdftext.parse_tounicode pdf (Pdf.lookup_obj pdf i) in
let tu = (Pdfcmap.parse_tounicode pdf (Pdf.lookup_obj pdf i)).map in
if check_unicode tu 0xFEFF || check_unicode tu 0xFFFE then merror ())
(all_tounicodes pdf)