Sophie

Sophie

distrib > Mageia > 8 > x86_64 > by-pkgid > 8615d1ff124bda13503782ea96fa80eb > files > 3

djvulibre-3.5.28-1.1.mga8.src.rpm

From: "Barak A. Pearlmutter" <barak+git@pearlmutter.net>
Date: Mon, 10 May 2021 15:49:14 +0100
Subject: djvulibre-fedora Patch10 djvulibre-3.5.27-check-input-pool.patch

---
 libdjvu/DataPool.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libdjvu/DataPool.cpp b/libdjvu/DataPool.cpp
index 5fcbedf..4c2eaf0 100644
--- a/libdjvu/DataPool.cpp
+++ b/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();