Check FPDF_PageToDevice() return value in FloatPageRectToPixelRect().
The FPDF_PageToDevice() API does not guarantee specific out-parameter values when failure is indicated, so avoid using them in subsequent calculations. Although this can't happen in the currently shipping chrome, future changes in PDFium to support XFA might make this possible. Bug: 1141256 Change-Id: Ib0b9b40ab419b2ea698e0dc6172343fea0ef989c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2491978Reviewed-by:Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org> Cr-Commit-Position: refs/heads/master@{#819906}
Showing
Please register or sign in to comment