Description: CVE-2017-7380 and CVE-2017-7381 and CVE-2017-7382 and CVE-2017-7383 Acked-By: Mattia Rizzolo Last-Update: 2017-05-17 Origin: https://sourceforge.net/p/podofo/code/1848 Bug-Debian: https://bugs.debian.org/859329 --- a/src/doc/PdfPage.cpp +++ b/src/doc/PdfPage.cpp @@ -647,7 +647,7 @@ // OC 15.08.2010 BugFix: Ghostscript creates here sometimes an indirect reference to a directory // PdfObject* pType = m_pResources->GetDictionary().GetKey( rType ); PdfObject* pType = m_pResources->GetIndirectKey( rType ); - if( pType->IsDictionary() && pType->GetDictionary().HasKey( rKey ) ) + if( pType && pType->IsDictionary() && pType->GetDictionary().HasKey( rKey ) ) { const PdfReference & ref = pType->GetDictionary().GetKey( rKey )->GetReference(); return this->GetObject()->GetOwner()->GetObject( ref );