update larg_pdf.patch, update.sh

This commit is contained in:
j 2016-03-14 14:40:08 +01:00
parent f07dfdf916
commit 0b9788acc3
2 changed files with 5 additions and 2 deletions

View file

@ -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 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 --- a/Shared/lib/python3.4/site-packages/PyPDF2/pdf.py
+++ b/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 debug: print((" x:", x, "%x"%ord(x)))
if stream.tell() < 2: if stream.tell() < 2:
raise utils.PdfReadError("EOL marker not found") raise utils.PdfReadError("EOL marker not found")
- step = min(stream.tell()-2, 8*1024) - step = min(stream.tell()-2, 8*1024)
- if step < 2:
- raise utils.PdfReadError("EOL marker not found")
- stream.seek(-step, 1) - stream.seek(-step, 1)
- x = stream.read(step) - x = stream.read(step)
- if b_('\n') in x or b_('\r') in x: - if b_('\n') in x or b_('\r') in x:

View file

@ -16,3 +16,4 @@ mv p34/lib/python3.4/site-packages lib/python3.4/site-packages
patch -p2 -R < large_pdf.patch patch -p2 -R < large_pdf.patch
rm -r p34 old rm -r p34 old
rm -r lib/python3.4/site-packages/netifaces*