Calling FPDFPageObj_GetFillColor() or FPDFPageObj_GetStrokeColor() on an image object will trigger a crash in CPDF_ColorState::GetFillColorRef() / CPDF_ColorState::GetStrokeColorRef().
-- You received this message because: 1. The project was configured to send all issue notifications to this address
commit b6aa0742e27f9d2164bda49f5b83587e6ff12769 Author: Lei Zhang <the...@chromium.org> Date: Tue Nov 12 23:15:31 2019
Fix crash in FPDFPageObj_GetFillColor().
Calling FPDFPageObj_GetFillColor() on an image object triggers a crash. Avoid that and return false. Apply the same fix to FPDFPageObj_GetStrokeColor(). Add an embedder test for this case.