File podofo-CVE-2019-20093.patch of Package podofo.23799

--- tools/podofoimgextract/ImageExtractor.cpp.orig	2010-02-15 14:28:13.000000000 -0600
+++ tools/podofoimgextract/ImageExtractor.cpp	2022-04-19 14:12:42.752150294 -0500
@@ -117,6 +117,11 @@ void ImageExtractor::ExtractImage( PdfOb
         //long lBitsPerComponent = pObject->GetDictionary().GetKey( PdfName("BitsPerComponent" ) )->GetNumber();
         // TODO: Handle colorspaces
 
+        if ( !pObject->GetDictionary().HasKey( PdfName("Width" ) ) || !pObject->GetDictionary().HasKey( PdfName("Height" ) ) )
+        {
+            PODOFO_RAISE_ERROR( ePdfError_BrokenFile );
+        }
+
         // Create a ppm image
         const char* pszPpmHeader = "P6\n# Image extracted by PoDoFo\n%li %li\n%li\n";
         
openSUSE Build Service is sponsored by