diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-05-01 17:46:34 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-01 17:46:34 +0000 |
commit | 3f3c39d04fd68d8ce11f52baa3acae8e0522a2c4 (patch) | |
tree | 6126bc07b3e212f758dfa4e13462fb7bfaa6d97f /public/fpdfview.h | |
parent | fe06d5109cd575c1e53b9b1cc3cc4ec3c5d7364f (diff) | |
download | pdfium-3f3c39d04fd68d8ce11f52baa3acae8e0522a2c4.tar.xz |
Check for NULL XFA context even when XFA
Use strict typing for FPDF_Page to ensure we don't fall into
code that expects the other page type when continuing from null
context case.
Change-Id: I7f028ef3e3d733f5557620030a87e22997da00d5
Reviewed-on: https://pdfium-review.googlesource.com/31770
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'public/fpdfview.h')
-rw-r--r-- | public/fpdfview.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/public/fpdfview.h b/public/fpdfview.h index 9ebfd8d99d..817da6cda1 100644 --- a/public/fpdfview.h +++ b/public/fpdfview.h @@ -43,17 +43,17 @@ typedef void* FPDF_DEST; typedef struct fpdf_document_t__* FPDF_DOCUMENT; typedef void* FPDF_FONT; typedef void* FPDF_LINK; -typedef void* FPDF_PAGE; +typedef struct fpdf_page_t__* FPDF_PAGE; typedef void* FPDF_PAGELINK; typedef void* FPDF_PAGEOBJECT; // Page object(text, path, etc) -typedef void const* FPDF_PAGEOBJECTMARK; +typedef const void* FPDF_PAGEOBJECTMARK; typedef void* FPDF_PAGERANGE; typedef void* FPDF_RECORDER; typedef void* FPDF_SCHHANDLE; typedef void* FPDF_STRUCTELEMENT; typedef void* FPDF_STRUCTTREE; typedef void* FPDF_TEXTPAGE; -typedef void const* FPDF_PATHSEGMENT; +typedef const void* FPDF_PATHSEGMENT; #ifdef PDF_ENABLE_XFA typedef void* FPDF_WIDGET; |