[packages/netpbm] - updated to 10.73.34 - added format patch (fix build with -Werror=format-security)

qboosh qboosh at pld-linux.org
Tue Jan 19 21:11:31 CET 2021


commit 7ca7a4d5d0ef86fe7e2b3ad9e927b2f2772f77b4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jan 19 21:11:39 2021 +0100

    - updated to 10.73.34
    - added format patch (fix build with -Werror=format-security)

 netpbm-format.patch | 15 +++++++++++++++
 netpbm.spec         |  6 ++++--
 2 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/netpbm.spec b/netpbm.spec
index 0106e2e..5f071b6 100644
--- a/netpbm.spec
+++ b/netpbm.spec
@@ -10,19 +10,20 @@ Summary(pt_BR.UTF-8):	Ferramentas para manipular arquivos graficos nos formatos
 Summary(ru.UTF-8):	Набор библиотек для работы с различными графическими файлами
 Summary(uk.UTF-8):	Набір бібліотек для роботи з різними графічними файлами
 Name:		netpbm
-Version:	10.73.28
+Version:	10.73.34
 Release:	1
 License:	Freeware
 Group:		Libraries
 #  svn export https://netpbm.svn.sourceforge.net/svnroot/netpbm/stable netpbm-%{version} (where version from doc/HISTORY)
 #  svn export https://netpbm.svn.sourceforge.net/svnroot/netpbm/userguide netpbm-%{version}/userguide
 Source0:	http://downloads.sourceforge.net/netpbm/%{name}-%{version}.tgz
-# Source0-md5:	0b59abd83b64353eaa0a68847aa85ecd
+# Source0-md5:	c5da60ea36f991e91fa231549cf4c6b9
 Source1:	http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
 # Source1-md5:	8fb174f8da02ea01bf72a9dc61be10f1
 Source2:	%{name}-docs-20030520.tar.bz2
 # Source2-md5:	2d6a3965d493def21edfbc3e1aa262e9
 Patch0:		%{name}-make.patch
+Patch1:		%{name}-format.patch
 URL:		http://netpbm.sourceforge.net/
 BuildRequires:	flex
 BuildRequires:	jasper-devel
@@ -212,6 +213,7 @@ użyciu svgalib.
 %prep
 %setup -q -a2
 %patch0 -p1
+%patch1 -p1
 
 %build
 ./configure << EOF
diff --git a/netpbm-format.patch b/netpbm-format.patch
new file mode 100644
index 0000000..0df0002
--- /dev/null
+++ b/netpbm-format.patch
@@ -0,0 +1,15 @@
+--- netpbm-10.73.34/converter/ppm/ximtoppm.c.orig	2020-06-27 19:03:16.000000000 +0200
++++ netpbm-10.73.34/converter/ppm/ximtoppm.c	2021-01-19 20:53:46.388484792 +0100
+@@ -116,9 +116,9 @@
+ */
+     header->bits_channel = atoi(a_head.bits_per_channel);
+     header->alpha_flag = atoi(a_head.alpha_channel);
+-    pm_asprintf(&header->author,  a_head.author);
+-    pm_asprintf(&header->date,    a_head.date);
+-    pm_asprintf(&header->program, a_head.program);
++    pm_asprintf(&header->author,  "%s", a_head.author);
++    pm_asprintf(&header->date,    "%s", a_head.date);
++    pm_asprintf(&header->program, "%s", a_head.program);
+     /* Do double checking for bakwards compatibility */
+     if (header->npics == 0)
+         header->npics = 1;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/netpbm.git/commitdiff/7ca7a4d5d0ef86fe7e2b3ad9e927b2f2772f77b4



More information about the pld-cvs-commit mailing list