public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Pedro Moura <pmoura@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/djvulibre] epel10: Removed unused patches
Date: Mon, 28 Sep 2026 16:38:15 GMT [thread overview]
Message-ID: <179061349598.1.16220283989676220087.rpms-djvulibre-a09604592427@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/djvulibre
Branch : epel10
Commit : a0960459242794607731e294f9a041eec3f56e46
Author : Pedro Moura <pmoura@redhat.com>
Date : 2026-09-22T16:02:35-03:00
Stats : +0/-216 in 9 file(s)
URL : https://src.fedoraproject.org/rpms/djvulibre/c/a0960459242794607731e294f9a041eec3f56e46?branch=epel10
Log:
Removed unused patches
Signed-off-by: Pedro Moura <pmoura@redhat.com>
---
diff --git a/djvulibre-3.5.22-cdefs.patch b/djvulibre-3.5.22-cdefs.patch
deleted file mode 100644
index d62ef08..0000000
--- a/djvulibre-3.5.22-cdefs.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -up djvulibre-3.5.22/libdjvu/GSmartPointer.h.cdefs djvulibre-3.5.22/libdjvu/GSmartPointer.h
---- djvulibre-3.5.22/libdjvu/GSmartPointer.h.cdefs 2008-03-05 01:44:20.000000000 +0000
-+++ djvulibre-3.5.22/libdjvu/GSmartPointer.h 2011-01-31 13:43:37.595917364 +0000
-@@ -65,6 +65,8 @@
- # pragma interface
- #endif
-
-+#include <cstddef>
-+
- /** @name GSmartPointer.h
-
- Files #"GSmartPointer.h"# and #"GSmartPointer.cpp"# define a smart-pointer
diff --git a/djvulibre-3.5.25.3-cflags.patch b/djvulibre-3.5.25.3-cflags.patch
deleted file mode 100644
index e2b7c5f..0000000
--- a/djvulibre-3.5.25.3-cflags.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-diff -up djvulibre-3.5.25/configure~ djvulibre-3.5.25/configure
---- djvulibre-3.5.25/configure~ 2012-05-08 05:56:53.000000000 +0300
-+++ djvulibre-3.5.25/configure 2012-10-10 00:01:36.000000000 +0300
-@@ -14733,6 +14733,7 @@ fi
-
- OPTS=
-
-+if false; then
- saved_CXXFLAGS="$CXXFLAGS"
- saved_CFLAGS="$CFLAGS"
- CXXFLAGS=
-@@ -14750,6 +14751,7 @@ fi
- *) CFLAGS="$CFLAGS $opt" ;;
- esac
- done
-+fi
- if test x$ac_debug = xno ; then
- OPTS=-DNDEBUG
-
-@@ -14770,6 +14772,7 @@ $as_echo "no" >&6; }
- fi
-
-
-+if false; then
- opt="-O3"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts $opt" >&5
- $as_echo_n "checking if $CXX accepts $opt... " >&6; }
-@@ -14801,6 +14804,7 @@ $as_echo "no" >&6; }
- fi
-
- fi
-+fi
-
-
- opt="-Wno-non-virtual-dtor"
-@@ -14819,6 +14823,7 @@ $as_echo "no" >&6; }
-
- fi
-
-+if false; then
- cpu=`uname -m 2>/dev/null`
- test -z "$cpu" && cpu=${host_cpu}
- case "${host_cpu}" in
-@@ -14860,6 +14865,7 @@ $as_echo "no" >&6; }
-
- ;;
- esac
-+fi
- else
-
- opt="-Wall"
diff --git a/djvulibre-3.5.27-check-image-size.patch b/djvulibre-3.5.27-check-image-size.patch
deleted file mode 100644
index 8730c25..0000000
--- a/djvulibre-3.5.27-check-image-size.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-diff --git a/libdjvu/IW44Image.cpp b/libdjvu/IW44Image.cpp
-index e8d4b44..aa3d554 100644
---- a/libdjvu/IW44Image.cpp
-+++ b/libdjvu/IW44Image.cpp
-@@ -678,9 +678,13 @@ IW44Image::Map::image(signed char *img8, int rowsize, int pixsep, int fast)
- // Allocate reconstruction buffer
- short *data16;
- size_t sz = bw * bh;
-+ if (sz == 0)
-+ G_THROW("IW44Image: zero size image (corrupted file?)");
- if (sz / (size_t)bw != (size_t)bh) // multiplication overflow
- G_THROW("IW44Image: image size exceeds maximum (corrupted file?)");
- GPBuffer<short> gdata16(data16,sz);
-+ if (data16 == NULL)
-+ G_THROW("IW44Image: unable to allocate image data");
- // Copy coefficients
- int i;
- short *p = data16;
diff --git a/djvulibre-3.5.27-check-input-pool.patch b/djvulibre-3.5.27-check-input-pool.patch
deleted file mode 100644
index 26e08e9..0000000
--- a/djvulibre-3.5.27-check-input-pool.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-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();
diff --git a/djvulibre-3.5.27-djvuport-stack-overflow.patch b/djvulibre-3.5.27-djvuport-stack-overflow.patch
deleted file mode 100644
index e7bc643..0000000
--- a/djvulibre-3.5.27-djvuport-stack-overflow.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-diff --git a/libdjvu/DjVuPort.cpp b/libdjvu/DjVuPort.cpp
-index 2b3e0d2..ede7f6b 100644
---- a/libdjvu/DjVuPort.cpp
-+++ b/libdjvu/DjVuPort.cpp
-@@ -507,10 +507,19 @@ GP<DjVuFile>
- DjVuPortcaster::id_to_file(const DjVuPort * source, const GUTF8String &id)
- {
- GPList<DjVuPort> list;
-+
-+ if (!!opening_id && opening_id == id)
-+ G_THROW("DjVuPortcaster: recursive opening of the same file (corrupted file?)");
-+ else
-+ opening_id = id;
-+
- compute_closure(source, list, true);
- GP<DjVuFile> file;
- for(GPosition pos=list;pos;++pos)
- if ((file=list[pos]->id_to_file(source, id))) break;
-+
-+ opening_id = GUTF8String();
-+
- return file;
- }
-
-diff --git a/libdjvu/DjVuPort.h b/libdjvu/DjVuPort.h
-index e2b3125..313dc2b 100644
---- a/libdjvu/DjVuPort.h
-+++ b/libdjvu/DjVuPort.h
-@@ -484,6 +484,7 @@ private:
- const DjVuPort *dst, int distance);
- void compute_closure(const DjVuPort *src, GPList<DjVuPort> &list,
- bool sorted=false);
-+ GUTF8String opening_id;
- };
-
-
diff --git a/djvulibre-3.5.27-export-file.patch b/djvulibre-3.5.27-export-file.patch
deleted file mode 100644
index 02a1c44..0000000
--- a/djvulibre-3.5.27-export-file.patch
+++ /dev/null
@@ -1,28 +0,0 @@
---- djvulibre-3.5.27/desktopfiles/Makefile.am
-+++ djvulibre-3.5.27/desktopfiles/Makefile.am
-@@ -32,10 +32,9 @@ if HAVE_CONVERSION_INKSCAPE
- convert_icons_process = \
- s=`echo $@ | sed -e 's/[a-z]*\([0-9]*\).*/\1/'`; \
- ${INKSCAPE} \
----without-gui \
- --export-width=$${s} \
- --export-height=$${s} \
----export-png=$@ $<
-+--export-filename=$@ $<
- endif
-
- if HAVE_CONVERSION_CONVERT
---- djvulibre-3.5.27/desktopfiles/Makefile.in
-+++ djvulibre-3.5.27/desktopfiles/Makefile.in
-@@ -306,10 +306,9 @@ PNGICONS = \
- @HAVE_CONVERSION_INKSCAPE_TRUE@convert_icons_process = \
- @HAVE_CONVERSION_INKSCAPE_TRUE@s=`echo $@ | sed -e 's/[a-z]*\([0-9]*\).*/\1/'`; \
- @HAVE_CONVERSION_INKSCAPE_TRUE@${INKSCAPE} \
--@HAVE_CONVERSION_INKSCAPE_TRUE@--without-gui \
- @HAVE_CONVERSION_INKSCAPE_TRUE@--export-width=$${s} \
- @HAVE_CONVERSION_INKSCAPE_TRUE@--export-height=$${s} \
--@HAVE_CONVERSION_INKSCAPE_TRUE@--export-png=$@ $<
-+@HAVE_CONVERSION_INKSCAPE_TRUE@--export-filename=$@ $<
-
- @HAVE_CONVERSION_RSVG_TRUE@convert_icons_process = \
- @HAVE_CONVERSION_RSVG_TRUE@s=`echo $@ | sed -e 's/[a-z]*\([0-9]*\).*/\1/'`; \
diff --git a/djvulibre-3.5.27-integer-overflow.patch b/djvulibre-3.5.27-integer-overflow.patch
deleted file mode 100644
index 279a038..0000000
--- a/djvulibre-3.5.27-integer-overflow.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-diff --git a/tools/ddjvu.cpp b/tools/ddjvu.cpp
-index 7109952..b41f7d2 100644
---- a/tools/ddjvu.cpp
-+++ b/tools/ddjvu.cpp
-@@ -70,6 +70,7 @@
- #include <locale.h>
- #include <fcntl.h>
- #include <errno.h>
-+#include <stdint.h>
-
- #ifdef UNIX
- # include <sys/time.h>
-@@ -394,7 +395,9 @@ render(ddjvu_page_t *page, int pageno)
- rowsize = rrect.w;
- else
- rowsize = rrect.w * 3;
-- if (! (image = (char*)malloc(rowsize * rrect.h)))
-+ if ((size_t)rowsize > SIZE_MAX / rrect.h)
-+ die(i18n("Integer overflow when allocating image buffer for page %d"), pageno);
-+ if (! (image = (char*)malloc((size_t)rowsize * rrect.h)))
- die(i18n("Cannot allocate image buffer for page %d"), pageno);
-
- /* Render */
diff --git a/djvulibre-3.5.27-out-of-bound-write-2.patch b/djvulibre-3.5.27-out-of-bound-write-2.patch
deleted file mode 100644
index f2fae47..0000000
--- a/djvulibre-3.5.27-out-of-bound-write-2.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-diff --git a/libdjvu/DjVuText.cpp b/libdjvu/DjVuText.cpp
-index 60a4f39..b11df7b 100644
---- a/libdjvu/DjVuText.cpp
-+++ b/libdjvu/DjVuText.cpp
-@@ -345,7 +345,8 @@ DjVuTXT::decode(const GP<ByteStream> &gbs)
- int textsize = bs.read24();
- char *buffer = textUTF8.getbuf(textsize);
- int readsize = bs.read(buffer,textsize);
-- buffer[readsize] = 0;
-+ if (buffer)
-+ buffer[readsize] = 0;
- if (readsize < textsize)
- G_THROW( ERR_MSG("DjVuText.corrupt_chunk") );
- // Try reading zones
diff --git a/djvulibre-3.5.27-unsigned-short-overflow.patch b/djvulibre-3.5.27-unsigned-short-overflow.patch
deleted file mode 100644
index c7a6f3a..0000000
--- a/djvulibre-3.5.27-unsigned-short-overflow.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff --git a/libdjvu/GBitmap.cpp b/libdjvu/GBitmap.cpp
-index c2fdbe4..e271a1d 100644
---- a/libdjvu/GBitmap.cpp
-+++ b/libdjvu/GBitmap.cpp
-@@ -69,6 +69,7 @@
- #include <stddef.h>
- #include <stdlib.h>
- #include <string.h>
-+#include <limits.h>
-
- // - Author: Leon Bottou, 05/1997
-
-@@ -1284,6 +1285,8 @@ GBitmap::decode(unsigned char *runs)
- // initialize pixel array
- if (nrows==0 || ncolumns==0)
- G_THROW( ERR_MSG("GBitmap.not_init") );
-+ if (ncolumns > USHRT_MAX - border)
-+ G_THROW("GBitmap: row size exceeds maximum (corrupted file?)");
- bytes_per_row = ncolumns + border;
- if (runs==0)
- G_THROW( ERR_MSG("GBitmap.null_arg") );
reply other threads:[~2026-09-28 16:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179061349598.1.16220283989676220087.rpms-djvulibre-a09604592427@fedoraproject.org \
--to=pmoura@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox