summaryrefslogtreecommitdiff
path: root/testing/tools
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-02-05 10:51:54 -0800
committerTom Sepez <tsepez@chromium.org>2015-02-05 10:51:54 -0800
commit93daa3c8942b837a948d4803145a07e2fd9c084b (patch)
tree8d612e9f209b8c17b001f633446fb6aae50e4d02 /testing/tools
parent35425896b07b5124651c249d6ce29285cf71ea3b (diff)
downloadpdfium-93daa3c8942b837a948d4803145a07e2fd9c084b.tar.xz
Merge to XFA: Fix segv in CPDF_DataAvail::CheckRoot()
Original Review URL: https://codereview.chromium.org/895933003 BUG=454695 TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/901013003
Diffstat (limited to 'testing/tools')
-rwxr-xr-xtesting/tools/fixup_pdf_template.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/tools/fixup_pdf_template.py b/testing/tools/fixup_pdf_template.py
index 873caeedde..87996a42cd 100755
--- a/testing/tools/fixup_pdf_template.py
+++ b/testing/tools/fixup_pdf_template.py
@@ -24,8 +24,10 @@ class TemplateProcessor:
XREF_TOKEN = '{{xref}}'
XREF_REPLACEMENT = 'xref\n%d %d\n'
- XREF_REPLACEMENT_N = '%010d %05d n\n'
- XREF_REPLACEMENT_F = '0000000000 65536 f\n'
+
+ # XREF rows must be exactly 20 bytes - space required.
+ XREF_REPLACEMENT_N = '%010d %05d n \n'
+ XREF_REPLACEMENT_F = '0000000000 65535 f \n'
STARTXREF_TOKEN= '{{startxref}}'
STARTXREF_REPLACEMENT = 'startxref\n%d'