diff options
Diffstat (limited to 'fpdfsdk/fpdf_transformpage.cpp')
-rw-r--r-- | fpdfsdk/fpdf_transformpage.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fpdfsdk/fpdf_transformpage.cpp b/fpdfsdk/fpdf_transformpage.cpp index a3ba7ca7a9..210c6b6fde 100644 --- a/fpdfsdk/fpdf_transformpage.cpp +++ b/fpdfsdk/fpdf_transformpage.cpp @@ -36,6 +36,9 @@ bool GetBoundingBox(CPDF_Page* page, float* bottom, float* right, float* top) { + if (!left || !bottom || !right || !top) + return false; + CPDF_Array* pArray = page->GetDict()->GetArrayFor(key); if (!pArray) return false; |