From 3f3c39d04fd68d8ce11f52baa3acae8e0522a2c4 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 1 May 2018 17:46:34 +0000 Subject: 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 Reviewed-by: dsinclair --- public/fpdfview.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'public') 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; -- cgit v1.2.3