File djvulibre-CVE-2021-32492.patch of Package djvulibre.30376

--- a/libdjvu/DataPool.cpp	
+++ a/libdjvu/DataPool.cpp	
@@ -791,6 +791,8 @@ DataPool::create(const GP<DataPool> & pool, int start, int length)
   DEBUG_MSG("DataPool::DataPool: pool=" << (void *)((DataPool *)pool) << " start=" << start << " length= " << length << "\n");
   DEBUG_MAKE_INDENT(3);
 
+  if (!pool) G_THROW( ERR_MSG("DataPool.zero_DataPool") );
+
   DataPool *xpool=new DataPool();
   GP<DataPool> retval=xpool;
   xpool->init();

openSUSE Build Service is sponsored by