Skip to content

Commit

Permalink
#157 - vulnerability in used pypdf
Browse files Browse the repository at this point in the history
  • Loading branch information
m32 committed Dec 19, 2023
1 parent 196898c commit 6a63b13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion endesive/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

__author__ = 'Grzegorz Makarewicz'
__license__ = 'MIT'
__version__ = '2.16'
__version__ = '2.16.1'

__all__ = [__author__, __license__, __version__]
8 changes: 4 additions & 4 deletions endesive/pdf/PyPDF2/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2000,7 +2000,7 @@ def _pairs(self, array):
def readNextEndLine(self, stream):
debug = False
if debug: print(">>readNextEndLine")
line = b_("")
line_parts = []
while True:
# Prevent infinite loops in malformed PDFs
if stream.tell() == 0:
Expand All @@ -2027,10 +2027,10 @@ def readNextEndLine(self, stream):
break
else:
if debug: print(" x is neither")
line = x + line
if debug: print((" RNEL line:", line))
line_parts.append(x)
if debug: print("leaving RNEL")
return line
line_parts.reverse()
return b"".join(line_parts)

def decrypt(self, password):
"""
Expand Down

0 comments on commit 6a63b13

Please sign in to comment.