Skip to content

Commit

Permalink
more checks
Browse files Browse the repository at this point in the history
  • Loading branch information
m32 committed Sep 16, 2024
1 parent 2c6f80e commit 75e828e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions endesive/pdf/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def verify(pdfdata, certs=None, systemCertsPath=None):
stop = pdfdata.find(b"]", start)
assert n != -1 and start != -1 and stop != -1
br = [int(i, 10) for i in pdfdata[start + 1 : stop].split()]
assert pdfdata[br[1]] == 60 and pdfdata[br[2]-1] == 62
contents = pdfdata[br[0] + br[1] + 1 : br[2] - 1]
bcontents = bytes.fromhex(contents.decode("utf8"))
data1 = pdfdata[br[0] : br[0] + br[1]]
Expand Down

0 comments on commit 75e828e

Please sign in to comment.