From cd36fc196dcaf010730b9c3019808877b95a0bf2 Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Jun 21 2005 14:31:03 +0000 Subject: - fix segfault in pbmtolj caused by unchecked assertions caused by definition of NDEBUG (#160429) - drop hunk from .security patch causing dual inclusion of string.h in pbmtolj.c --- diff --git a/netpbm-10.23-security.patch b/netpbm-10.23-security.patch index 17e766a..9bd90b7 100644 --- a/netpbm-10.23-security.patch +++ b/netpbm-10.23-security.patch @@ -1441,14 +1441,6 @@ if ((car >= MAXPKCHAR) || !filename[car]) { --- netpbm-10.28/converter/pbm/pbmtolj.c.security 2005-04-23 22:24:05.000000000 +0200 +++ netpbm-10.28/converter/pbm/pbmtolj.c 2005-06-10 09:44:00.364583648 +0200 -@@ -32,6 +32,7 @@ - #include "mallocvar.h" - #include - #include -+#include - - static char *rowBuffer, *prevRowBuffer, *packBuffer, *deltaBuffer; - static int rowBufferSize, rowBufferIndex, prevRowBufferIndex; @@ -119,7 +120,11 @@ parseCommandLine(int argc, char ** argv, static void allocateBuffers(unsigned int const cols) { diff --git a/netpbm.spec b/netpbm.spec index c342508..ca16641 100644 --- a/netpbm.spec +++ b/netpbm.spec @@ -1,7 +1,7 @@ Summary: A library for handling different graphics file formats. Name: netpbm Version: 10.28 -Release: 1 +Release: 2 License: freeware Group: System Environment/Libraries URL: http://netpbm.sourceforge.net/ @@ -21,6 +21,7 @@ Patch10: netpbm-10.27-badlink.patch Patch11: netpbm-10.27-bmptopnm.patch Patch12: netpbm-10.27-libpm.patch Patch13: netpbm-10.27-pnmtojpeg.patch +Patch14: netpbm-10.28-ndebug.patch Buildroot: %{_tmppath}/%{name}-root BuildPrereq: libjpeg-devel, libpng-devel, libtiff-devel, perl Obsoletes: libgr @@ -78,6 +79,7 @@ netpbm-progs. You'll also need to install the netpbm package. %patch11 -p1 -b .bmptopnm %patch12 -p1 -b .libpm %patch13 -p1 -b .pnmtojpeg +%patch14 -p1 -b .ndebug ##mv shhopt/shhopt.h shhopt/pbmshhopt.h ##perl -pi -e 's|shhopt.h|pbmshhopt.h|g' `find -name "*.c" -o -name "*.h"` ./GNUmakefile @@ -175,6 +177,12 @@ rm -rf $RPM_BUILD_ROOT/usr/config_template %{_mandir}/man5/* %changelog +* Tue Jun 21 2005 Jindrich Novy 10.28-2 +- fix segfault in pbmtolj caused by unchecked assertions + caused by definition of NDEBUG (#160429) +- drop hunk from .security patch causing dual inclusion + of string.h in pbmtolj.c + * Fri Jun 10 2005 Jindrich Novy 10.28-1 - update to 10.28 - regenerated man pages