diff --git a/Shared/large_pdf.patch b/Shared/large_pdf.patch index 81e0a09..25b9985 100644 --- a/Shared/large_pdf.patch +++ b/Shared/large_pdf.patch @@ -1,12 +1,14 @@ diff --git a/Shared/lib/python3.4/site-packages/PyPDF2/pdf.py b/Shared/lib/python3.4/site-packages/PyPDF2/pdf.py -index 1987ccd..5522e4b 100644 +index be8959f..5522e4b 100644 --- a/Shared/lib/python3.4/site-packages/PyPDF2/pdf.py +++ b/Shared/lib/python3.4/site-packages/PyPDF2/pdf.py -@@ -1925,21 +1910,26 @@ class PdfFileReader(object): +@@ -1910,23 +1910,26 @@ class PdfFileReader(object): if debug: print((" x:", x, "%x"%ord(x))) if stream.tell() < 2: raise utils.PdfReadError("EOL marker not found") - step = min(stream.tell()-2, 8*1024) +- if step < 2: +- raise utils.PdfReadError("EOL marker not found") - stream.seek(-step, 1) - x = stream.read(step) - if b_('\n') in x or b_('\r') in x: diff --git a/Shared/update.sh b/Shared/update.sh index 001b106..ca13166 100755 --- a/Shared/update.sh +++ b/Shared/update.sh @@ -16,3 +16,4 @@ mv p34/lib/python3.4/site-packages lib/python3.4/site-packages patch -p2 -R < large_pdf.patch rm -r p34 old +rm -r lib/python3.4/site-packages/netifaces*