diff options
Diffstat (limited to 'CVE-2017-15587.patch')
-rw-r--r-- | CVE-2017-15587.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CVE-2017-15587.patch b/CVE-2017-15587.patch new file mode 100644 index 000000000000..b5f3c2fded17 --- /dev/null +++ b/CVE-2017-15587.patch @@ -0,0 +1,11 @@ +--- a/source/pdf/pdf-xref.c ++++ b/source/pdf/pdf-xref.c +@@ -918,7 +918,7 @@ + pdf_xref_entry *table; + int i, n; + +- if (i0 < 0 || i1 < 0) ++ if (i0 < 0 || i1 < 0 || (i0+i1) < 0) + fz_throw(ctx, FZ_ERROR_GENERIC, "negative xref stream entry index"); + //if (i0 + i1 > pdf_xref_len(ctx, doc)) + // fz_throw(ctx, FZ_ERROR_GENERIC, "xref stream has too many entries"); |