rpms/netpbm/devel .cvsignore, 1.16, 1.17 netpbm-10.23-security.patch, 1.9, 1.10 netpbm-10.28-CAN-2005-2471.patch, 1.1, 1.2 netpbm.spec, 1.43, 1.44 sources, 1.17, 1.18 netpbm-10.27-libpm.patch, 1.2, NONE netpbm-10.27-pnmtojpeg.patch, 1.1, NONE netpbm-10.28-pbmtolj.patch, 1.1, NONE

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Aug 16 14:36:04 UTC 2005


Author: jnovy

Update of /cvs/dist/rpms/netpbm/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv12233

Modified Files:
	.cvsignore netpbm-10.23-security.patch 
	netpbm-10.28-CAN-2005-2471.patch netpbm.spec sources 
Removed Files:
	netpbm-10.27-libpm.patch netpbm-10.27-pnmtojpeg.patch 
	netpbm-10.28-pbmtolj.patch 
Log Message:
- update to 10.29
- drop upstreamed .libpm, .pnmtojpeg, .pbmtolj patches
- update .CAN-2005-2471 patch
- regenerate man pages



Index: .cvsignore
===================================================================
RCS file: /cvs/dist/rpms/netpbm/devel/.cvsignore,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- .cvsignore	10 Jun 2005 09:16:43 -0000	1.16
+++ .cvsignore	16 Aug 2005 14:36:00 -0000	1.17
@@ -10,3 +10,5 @@
 netpbmdoc-10.27.tar.bz2
 netpbm-10.28.tar.bz2
 netpbmdoc-10.28.tar.bz2
+netpbm-10.29.tar.bz2
+netpbmdoc-10.29.tar.bz2

netpbm-10.23-security.patch:
 OPENLICENSE                        |  163 +++++++++++++++++++++++++++++++++++++
 analyzer/pgmhist.c                 |    1 
 analyzer/pgmtexture.c              |   15 ++-
 converter/other/gemtopnm.c         |    1 
 converter/other/jpegtopnm.c        |    1 
 converter/other/pbmtopgm.c         |    1 
 converter/other/pngtopnm.c         |   19 ++--
 converter/other/pnmtoddif.c        |    2 
 converter/other/pnmtojpeg.c        |    9 +-
 converter/other/pnmtops.c          |   11 +-
 converter/other/pnmtorle.c         |    2 
 converter/other/pnmtosgi.c         |   19 ++++
 converter/other/pnmtotiff.c        |    7 +
 converter/other/rletopnm.c         |    2 
 converter/other/sgitopnm.c         |    6 +
 converter/other/sirtopnm.c         |    1 
 converter/other/tifftopnm.c        |    3 
 converter/other/xwdtopnm.c         |    8 +
 converter/pbm/icontopbm.c          |    7 +
 converter/pbm/mdatopbm.c           |    5 -
 converter/pbm/mgrtopbm.c           |    2 
 converter/pbm/pbmto10x.c           |    2 
 converter/pbm/pbmto4425.c          |    3 
 converter/pbm/pbmtoascii.c         |    2 
 converter/pbm/pbmtocmuwm.c         |    1 
 converter/pbm/pbmtogem.c           |    1 
 converter/pbm/pbmtogo.c            |    1 
 converter/pbm/pbmtoicon.c          |    1 
 converter/pbm/pbmtolj.c            |    4 
 converter/pbm/pbmtomacp.c          |    3 
 converter/pbm/pbmtomda.c           |    1 
 converter/pbm/pbmtomgr.c           |    1 
 converter/pbm/pbmtoppa/pbm.c       |    4 
 converter/pbm/pbmtoppa/pbmtoppa.c  |    1 
 converter/pbm/pbmtox10bm.c         |    1 
 converter/pbm/pbmtoxbm.c           |    1 
 converter/pbm/pbmtoybm.c           |    1 
 converter/pbm/pbmtozinc.c          |    1 
 converter/pbm/pktopbm.c            |    1 
 converter/pbm/thinkjettopbm.l      |    4 
 converter/pbm/ybmtopbm.c           |    1 
 converter/pgm/lispmtopgm.c         |    5 -
 converter/pgm/psidtopgm.c          |    1 
 converter/ppm/Makefile             |    2 
 converter/ppm/ilbmtoppm.c          |   28 ++++++
 converter/ppm/imgtoppm.c           |    2 
 converter/ppm/pcxtoppm.c           |    4 
 converter/ppm/picttoppm.c          |    2 
 converter/ppm/pjtoppm.c            |   21 ++--
 converter/ppm/ppmtoeyuv.c          |    1 
 converter/ppm/ppmtoicr.c           |    2 
 converter/ppm/ppmtoilbm.c          |    9 +-
 converter/ppm/ppmtolj.c            |    1 
 converter/ppm/ppmtomitsu.c         |    2 
 converter/ppm/ppmtompeg/frame.c    |   72 ++++++++--------
 converter/ppm/ppmtompeg/iframe.c   |   18 ++--
 converter/ppm/ppmtompeg/jpeg.c     |    2 
 converter/ppm/ppmtompeg/parallel.c |    4 
 converter/ppm/ppmtompeg/psearch.c  |   18 +++-
 converter/ppm/ppmtompeg/rgbtoycc.c |    2 
 converter/ppm/ppmtopcx.c           |    2 
 converter/ppm/ppmtopict.c          |    2 
 converter/ppm/ppmtopj.c            |    1 
 converter/ppm/ppmtopjxl.c          |    8 +
 converter/ppm/ppmtowinicon.c       |   11 ++
 converter/ppm/ppmtoxpm.c           |    2 
 converter/ppm/qrttoppm.c           |    2 
 converter/ppm/sldtoppm.c           |    4 
 converter/ppm/ximtoppm.c           |    4 
 converter/ppm/xpmtoppm.c           |    1 
 converter/ppm/yuvtoppm.c           |    1 
 doc/COPYRIGHT.PATENT               |    5 +
 editor/pamcut.c                    |    2 
 editor/pamoil.c                    |    1 
 editor/pbmclean.c                  |    2 
 editor/pbmlife.c                   |    2 
 editor/pbmpscale.c                 |    1 
 editor/pbmreduce.c                 |    1 
 editor/pnmcut.c                    |    1 
 editor/pnmgamma.c                  |    1 
 editor/pnmhisteq.c                 |    1 
 editor/pnmindex.csh                |    3 
 editor/pnmpad.c                    |    2 
 editor/pnmpaste.c                  |    5 +
 editor/pnmremap.c                  |    2 
 editor/pnmrotate.c                 |    8 +
 editor/pnmscalefixed.c             |    7 +
 editor/pnmshear.c                  |    6 +
 editor/ppmdither.c                 |    6 +
 generator/pbmpage.c                |    3 
 generator/pbmtext.c                |   15 +++
 generator/pgmcrater.c              |    2 
 generator/pgmkernel.c              |    2 
 generator/ppmrainbow               |    2 
 lib/libpam.c                       |    3 
 lib/libpammap.c                    |    2 
 lib/libpbm1.c                      |    1 
 lib/libpbmvms.c                    |    2 
 lib/libpm.c                        |   54 +++++++++++-
 lib/pm.h                           |    6 +
 other/pnmcolormap.c                |    1 
 urt/README                         |    5 +
 urt/Runput.c                       |   10 +-
 urt/rle.h                          |   13 ++
 urt/rle_addhist.c                  |   19 +++-
 urt/rle_getrow.c                   |   17 ++-
 urt/rle_hdr.c                      |   19 +++-
 urt/rle_open_f.c                   |    8 +
 urt/rle_putcom.c                   |    9 +-
 urt/scanargs.c                     |    6 -
 110 files changed, 692 insertions(+), 117 deletions(-)

View full diff with command:
/usr/bin/cvs -f diff  -kk -u -N -r 1.9 -r 1.10 netpbm-10.23-security.patch
Index: netpbm-10.23-security.patch
===================================================================
RCS file: /cvs/dist/rpms/netpbm/devel/netpbm-10.23-security.patch,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- netpbm-10.23-security.patch	21 Jun 2005 14:31:03 -0000	1.9
+++ netpbm-10.23-security.patch	16 Aug 2005 14:36:00 -0000	1.10
@@ -1,29 +1,172 @@
---- netpbm-10.28/generator/ppmrainbow.security	2003-01-04 01:40:56.000000000 +0100
-+++ netpbm-10.28/generator/ppmrainbow	2005-06-10 09:44:00.275597176 +0200
-@@ -11,7 +11,7 @@ my ($Twid, $Thgt, $tmpdir, $norepeat, $v
- # set defaults
- $Twid = 600;
- $Thgt = 8;
--$tmpdir = $ENV{"TMPDIR"} || "/tmp";
-+$tmpdir = $ENV{"TMPDIR"} || ".tmp";
- $norepeat = $FALSE;
- $verbose = $FALSE;
- 
---- netpbm-10.28/generator/pbmpage.c.security	2005-05-22 20:43:13.000000000 +0200
-+++ netpbm-10.28/generator/pbmpage.c	2005-06-10 09:44:00.276597024 +0200
-@@ -163,6 +163,9 @@ output_pbm(FILE *file, const int Width, 
-     /* We round the allocated row space up to a multiple of 8 so the ugly
-        fast code below can work.
-        */
-+       
-+    overflow_add(Width, 7);
-+    
-     pbmrow = pbm_allocrow(((Width+7)/8)*8);
-     
-     bitmap_cursor = 0;
---- netpbm-10.28/generator/pbmtext.c.security	2005-04-14 19:03:43.000000000 +0200
-+++ netpbm-10.28/generator/pbmtext.c	2005-06-10 09:44:00.278596720 +0200
-@@ -89,12 +89,14 @@ parse_command_line(int argc, char ** arg
+--- /dev/null	2005-08-16 12:27:18.576893136 +0200
++++ netpbm-10.29/OPENLICENSE	2005-08-16 16:24:14.000000000 +0200
+@@ -0,0 +1,163 @@
++			The Open Software License
++			v. 1.1
++
++This Open Software License (the "License") applies to any original work of 
++authorship (the "Original Work") whose owner (the "Licensor") has placed the 
++following notice immediately following the copyright notice for the Original 
++Work:
++
++Licensed under the Open Software License version 1.1
++
++1) Grant of Copyright License. Licensor hereby grants You a world-wide, 
++royalty-free, non-exclusive, perpetual, non-sublicenseable license to do the 
++following:
++
++a) to reproduce the Original Work in copies;
++
++b) to prepare derivative works ("Derivative Works") based upon the Original 
++Work;
++
++c) to distribute copies of the Original Work and Derivative Works to the 
++public, with the proviso that copies of Original Work or Derivative Works that 
++You distribute shall be licensed under the Open Software License;
++
++d) to perform the Original Work publicly; and
++
++e) to display the Original Work publicly.
++
++2) Grant of Patent License. Licensor hereby grants You a world-wide, 
++royalty-free, non-exclusive, perpetual, non-sublicenseable license, under 
++patent claims owned or controlled by the Licensor that are embodied in the 
++Original Work as furnished by the Licensor ("Licensed Claims") to make, use, 
++sell and offer for sale the Original Work. Licensor hereby grants You a 
++world-wide, royalty-free, non-exclusive, perpetual, non-sublicenseable license 
++under the Licensed Claims to make, use, sell and offer for sale Derivative Works.
++
++3) Grant of Source Code License. The term "Source Code" means the preferred 
++form of the Original Work for making modifications to it and all available 
++documentation describing how to modify the Original Work. Licensor hereby 
++agrees to provide a machine-readable copy of the Source Code of the Original 
++Work along with each copy of the Original Work that Licensor distributes. 
++Licensor reserves the right to satisfy this obligation by placing a 
++machine-readable copy of the Source Code in an information repository reasonably 
++calculated to permit inexpensive and convenient access by You for as long as
++ Licensor continues to distribute the Original Work, and by publishing the 
++address of that information repository in a notice immediately following the 
++copyright notice that applies to the Original Work.
++
++
++4) Exclusions From License Grant. Nothing in this License shall be deemed to 
++grant any rights to trademarks, copyrights, patents, trade secrets or any 
++other intellectual property of Licensor except as expressly stated herein. No 
++patent license is granted to make, use, sell or offer to sell embodiments of 
++any patent claims other than the Licensed Claims defined in Section 2. No 
++right is granted to the trademarks of Licensor even if such marks are included 
++in the Original Work. Nothing in this License shall be interpreted to prohibit 
++Licensor from licensing under different terms from this License any Original 
++Work that Licensor otherwise would have a right to license.
++
++5) External Deployment. The term "External Deployment" means the use or 
++distribution of the Original Work or Derivative Works in any way such that the 
++Original Work or Derivative Works may be used by anyone other than You, 
++whether the Original Work or Derivative Works are distributed to those persons 
++or made available as an application intended for use over a computer network. 
++As an express condition for the grants of license hereunder, You agree that 
++any External Deployment by You of a Derivative Work shall be deemed a 
++distribution and shall be licensed to all under the terms of this License, as 
++prescribed in section 1(c) herein.
++
++6) Attribution Rights. You must retain, in the Source Code of any Derivative 
++Works that You create, all copyright, patent or trademark notices from the 
++Source Code of the Original Work, as well as any notices of licensing and any 
++descriptive text identified therein as an "Attribution Notice." You must cause 
++the Source Code for any Derivative Works that You create to carry a prominent 
++Attribution Notice reasonably calculated to inform recipients that You have 
++modified the Original Work.
++
++7) Warranty and Disclaimer of Warranty. Licensor warrants that the copyright 
++in and to the Original Work is owned by the Licensor or that the Original Work 
++is distributed by Licensor under a valid current license from the copyright 
++owner. Except as expressly stated in the immediately proceeding sentence, the 
++Original Work is provided under this License on an "AS IS" BASIS and WITHOUT 
++WARRANTY, either express or implied, including, without limitation, the 
++warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR 
++PURPOSE. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. 
++This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No 
++license to Original Work is granted hereunder except under this disclaimer.
++
++8) Limitation of Liability. Under no circumstances and under no legal theory, 
++whether in tort (including negligence), contract, or otherwise, shall the 
++Licensor be liable to any person for any direct, indirect, special, incidental, 
++or consequential damages of any character arising as a result of this License 
++or the use of the Original Work including, without limitation, damages for 
++loss of goodwill, work stoppage, computer failure or malfunction, or any and 
++all other commercial damages or losses. This limitation of liability shall not 
++apply to liability for death or personal injury resulting from Licensor's 
++negligence to the extent applicable law prohibits such limitation. Some 
++jurisdictions do not allow the exclusion or limitation of incidental or 
++consequential damages, so this exclusion and limitation may not apply to You.
++
++
++9) Acceptance and Termination. If You distribute copies of the Original Work 
++or a Derivative Work, You must make a reasonable effort under the circumstances 
++to obtain the express and volitional assent of recipients to the terms of this 
++License. Nothing else but this License (or another written agreement between 
++Licensor and You) grants You permission to create Derivative Works based upon 
++the Original Work or to exercise any of the rights granted in Sections 1 herein, 
++and any attempt to do so except under the terms of this License (or another 
++written agreement between Licensor and You) is expressly prohibited by U.S. 
++copyright law, the equivalent laws of other countries, and by international 
++treaty. Therefore, by exercising any of the rights granted to You in Sections 
++1 herein, You indicate Your acceptance of this License and all of its terms and 
++conditions. This License shall terminate immediately and you may no longer 
++exercise any of the rights granted to You by this License upon Your failure to 
++honor the proviso in Section 1(c) herein.
++
++10) Mutual Termination for Patent Action. This License shall terminate 
++automatically and You may no longer exercise any of the rights granted to You 
++by this License if You file a lawsuit in any court alleging that any OSI 
++Certified open source software that is licensed under any license containing 
++this "Mutual Termination for Patent Action" clause infringes any patent claims 
++that are essential to use that software.
++
++11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this 
++License may be brought only in the courts of a jurisdiction wherein the Licensor 
++resides or in which Licensor conducts its primary business, and under the laws 
++of that jurisdiction excluding its conflict-of-law provisions. The application 
++of the United Nations Convention on Contracts for the International Sale of 
++Goods is expressly excluded. Any use of the Original Work outside the scope of 
++this License or after its termination shall be subject to the requirements and 
++penalties of the U.S. Copyright Act, 17 U.S.C. å¤ 101 et seq., the equivalent 
++laws of other countries, and international treaty. This section shall survive 
++the termination of this License.
++
++12) Attorneys Fees. In any action to enforce the terms of this License or 
++seeking damages relating thereto, the prevailing party shall be entitled to 
++recover its costs and expenses, including, without limitation, reasonable 
++attorneys' fees and costs incurred in connection with such action, including 
++any appeal of such action. This section shall survive the termination of this 
++License.
++
++13) Miscellaneous. This License represents the complete agreement concerning 
++the subject matter hereof. If any provision of this License is held to be 
++unenforceable, such provision shall be reformed only to the extent necessary 
++to make it enforceable.
++
++14) Definition of "You" in This License. "You" throughout this License, 
++whether in upper or lower case, means an individual or a legal entity exercising 
++rights under, and complying with all of the terms of, this License. For legal 
++entities, "You" includes any entity that controls, is controlled by, or is under 
++common control with you. For purposes of this definition, "control" means (i) 
++the power, direct or indirect, to cause the direction or management of such 
++entity, whether by contract or otherwise, or (ii) ownership of fifty percent 
++(50%) or more of the outstanding shares, or (iii) beneficial ownership of such 
++entity.
++
++15) Right to Use. You may use the Original Work in all ways not otherwise 
++restricted or conditioned by this License or by law, and Licensor promises not 
++to interfere with or be responsible for such uses by You.
++
++This license is Copyright (C) 2002 Lawrence E. Rosen. All rights reserved. 
++Permission is hereby granted to copy and distribute this license without 
++modification. This license may not be modified without the express written 
[...3541 lines suppressed...]
-+ *  Header declarations needed
-  */
- /* 
-  * rle.h - Global declarations for Utah Raster Toolkit RLE programs.
-@@ -169,6 +172,16 @@ rle_hdr				/* End of typedef. */
-  */
- extern rle_hdr rle_dflt_hdr;
- 
-+/* 
-+ * Provided by pm library
-+ */
-+ 
-+extern void overflow_add(int, int);
-+extern void overflow2(int, int);
-+extern void overflow3(int, int, int);
-+extern void *malloc2(int, int);
-+extern void *malloc3(int, int, int);
-+extern void *realloc2(void *, int, int);
- 
- /* Declare RLE library routines. */
- 
---- netpbm-10.28/urt/README.security	2000-06-02 22:53:04.000000000 +0200
-+++ netpbm-10.28/urt/README	2005-06-10 09:44:00.410576656 +0200
-@@ -18,3 +18,8 @@ in its initializer in the original.  But
- defines stdout as a variable, so that wouldn't compile.  So I changed
- it to NULL and added a line to rle_hdr_init to set that field to
- 'stdout' dynamically.  2000.06.02 BJH.
-+
-+Redid the code to check for maths overflows and other crawly horrors.
-+Removed pipe through and compress support (unsafe)
-+
-+Alan Cox <alan at redhat.com>
---- netpbm-10.28/urt/scanargs.c.security	2003-01-08 20:38:25.000000000 +0100
-+++ netpbm-10.28/urt/scanargs.c	2005-06-10 09:44:00.411576504 +0200
-@@ -38,6 +38,8 @@
-  *
-  *  Modified at BRL 16-May-88 by Mike Muuss to avoid Alliant STDC desire
-  *  to have all "void" functions so declared.
-+ *
-+ *  2002-12-19: Fix maths wrapping bugs. Alan Cox <alan at redhat.com>
-  */
- 
- #include "rle.h"
-@@ -65,8 +67,8 @@ typedef int *ptr;
- /* 
-  * Storage allocation macros
-  */
--#define NEW( type, cnt )	(type *) malloc( (cnt) * sizeof( type ) )
--#define RENEW( type, ptr, cnt )	(type *) realloc( ptr, (cnt) * sizeof( type ) )
-+#define NEW( type, cnt )	(type *) malloc2( (cnt) , sizeof( type ) )
-+#define RENEW( type, ptr, cnt )	(type *) realloc2( ptr, (cnt), sizeof( type ) )
- 
- #if defined(c_plusplus) && !defined(USE_PROTOTYPES)
- #define USE_PROTOTYPES
---- netpbm-10.28/urt/rle_putcom.c.security	2000-05-19 01:12:22.000000000 +0200
-+++ netpbm-10.28/urt/rle_putcom.c	2005-06-10 09:44:00.411576504 +0200
+--- netpbm-10.29/urt/rle_putcom.c.security	2000-05-19 01:12:22.000000000 +0200
++++ netpbm-10.29/urt/rle_putcom.c	2005-08-16 16:24:14.000000000 +0200
 @@ -14,6 +14,8 @@
   * If you modify this software, you should include a notice giving the
   * name of the person performing the modification, the date of modification,
@@ -2408,7 +2503,7 @@
   */
  /* 
   * rle_putcom.c - Add a picture comment to the header struct.
-@@ -89,19 +91,22 @@ rle_hdr * the_hdr;
+@@ -89,19 +91,22 @@
  
      if ( the_hdr->comments == NULL )
      {
@@ -2432,7 +2527,7 @@
  	/* Not found */
  	/* Can't realloc because somebody else might be pointing to this
  	 * comments block.  Of course, if this were true, then the
-@@ -111,7 +116,7 @@ rle_hdr * the_hdr;
+@@ -111,7 +116,7 @@
  	 * could copy the pointers, too.
  	 */
  	old_comments = the_hdr->comments;
@@ -2441,120 +2536,3 @@
  	the_hdr->comments[--i] = NULL;
  	the_hdr->comments[--i] = value;
  	for ( i--; i >= 0; i-- )
---- netpbm-10.28/urt/rle_hdr.c.security	2000-06-09 09:49:51.000000000 +0200
-+++ netpbm-10.28/urt/rle_hdr.c	2005-06-10 09:44:00.412576352 +0200
-@@ -14,6 +14,8 @@
-  * If you modify this software, you should include a notice giving the
-  * name of the person performing the modification, the date of modification,
-  * and the reason for such modification.
-+ *
-+ *  2002-12-19: Fix maths wrapping bugs. Alan Cox <alan at redhat.com>
-  */
- /* 
-  * rle_hdr.c - Functions to manipulate rle_hdr structures.
-@@ -77,7 +79,10 @@ int img_num;
-     /* Fill in with copies of the strings. */
-     if ( the_hdr->cmd != pgmname )
-     {
--	char *tmp = (char *)malloc( strlen( pgmname ) + 1 );
-+	char *tmp ;
-+
-+	overflow_add(strlen(pgmname), 1);
-+	tmp = malloc( strlen( pgmname ) + 1 );
- 	RLE_CHECK_ALLOC( pgmname, tmp, 0 );
- 	strcpy( tmp, pgmname );
- 	the_hdr->cmd = tmp;
-@@ -85,7 +90,9 @@ int img_num;
- 
-     if ( the_hdr->file_name != fname )
-     {
--	char *tmp = (char *)malloc( strlen( fname ) + 1 );
-+	char *tmp;
-+	overflow_add(strlen(fname), 1);
-+	tmp = malloc( strlen( fname ) + 1 );
- 	RLE_CHECK_ALLOC( pgmname, tmp, 0 );
- 	strcpy( tmp, fname );
- 	the_hdr->file_name = tmp;
-@@ -150,6 +157,7 @@ rle_hdr *from_hdr, *to_hdr;
-     if ( to_hdr->bg_color )
-     {
- 	int size = to_hdr->ncolors * sizeof(int);
-+	overflow2(to_hdr->ncolors, sizeof(int));
- 	to_hdr->bg_color = (int *)malloc( size );
- 	RLE_CHECK_ALLOC( to_hdr->cmd, to_hdr->bg_color, "background color" );
- 	memcpy( to_hdr->bg_color, from_hdr->bg_color, size );
-@@ -158,7 +166,7 @@ rle_hdr *from_hdr, *to_hdr;
-     if ( to_hdr->cmap )
-     {
- 	int size = to_hdr->ncmap * (1 << to_hdr->cmaplen) * sizeof(rle_map);
--	to_hdr->cmap = (rle_map *)malloc( size );
-+	to_hdr->cmap = (rle_map *)malloc3( to_hdr->ncmap, 1<<to_hdr->cmaplen, sizeof(rle_map));
- 	RLE_CHECK_ALLOC( to_hdr->cmd, to_hdr->cmap, "color map" );
- 	memcpy( to_hdr->cmap, from_hdr->cmap, size );
-     }
-@@ -171,11 +179,16 @@ rle_hdr *from_hdr, *to_hdr;
- 	int size = 0;
- 	CONST_DECL char **cp;
- 	for ( cp=to_hdr->comments; *cp; cp++ )
-+	{
-+	    overflow_add(size, 1);
- 	    size++;		/* Count the comments. */
-+ 	}
- 	/* Check if there are really any comments. */
- 	if ( size )
- 	{
-+	    overflow_add(size, 1);
- 	    size++;		/* Copy the NULL pointer, too. */
-+	    overflow2(size, sizeof(char *));
- 	    size *= sizeof(char *);
- 	    to_hdr->comments = (CONST_DECL char **)malloc( size );
- 	    RLE_CHECK_ALLOC( to_hdr->cmd, to_hdr->comments, "comments" );
---- netpbm-10.28/analyzer/pgmhist.c.security	2003-07-06 21:23:19.000000000 +0200
-+++ netpbm-10.28/analyzer/pgmhist.c	2005-06-10 09:44:00.413576200 +0200
-@@ -45,6 +45,7 @@ main( argc, argv )
-     grayrow = pgm_allocrow( cols );
- 
-     /* Build histogram. */
-+    overflow_add(maxval, 1);
-     MALLOCARRAY(hist, maxval + 1);
-     MALLOCARRAY(rcount, maxval + 1);
-     if ( hist == NULL || rcount == NULL )
---- netpbm-10.28/analyzer/pgmtexture.c.security	2003-08-07 18:18:16.000000000 +0200
-+++ netpbm-10.28/analyzer/pgmtexture.c	2005-06-10 09:44:00.414576048 +0200
-@@ -75,7 +75,10 @@ vector (int nl, int nh)
- {
-   float *v;
- 
--  MALLOCARRAY(v, (unsigned) (nh - nl + 1));
-+  overflow_add(nh, 1);
-+  if(nh < nl)
-+      pm_error("assert: h < l");
-+  v = (float *) malloc2 ((nh - nl + 1), sizeof (float));
-   if (v == NULL)
-     pm_error("Unable to allocate memory for a vector.");
-   return v - nl;
-@@ -91,16 +94,22 @@ matrix (int nrl, int nrh, int ncl, int n
-   float **m;
- 
-   /* allocate pointers to rows */
--  MALLOCARRAY(m, (unsigned) (nrh - nrl + 1));
-+  overflow_add(nrh, 1);
-+  if(nrh < nrl)
-+      pm_error("assert: nrh < nrl");
-+  m = (float **) malloc2(nrh - nrl + 1, sizeof (float *));
-   if (m == NULL)
-     pm_error("Unable to allocate memory for a matrix.");
- 
-   m -= ncl;
- 
-+  if(nch < ncl)
-+      pm_error("assert: nch < ncl");
-+  overflow_add(nch, 1);
-   /* allocate rows and set pointers to them */
-   for (i = nrl; i <= nrh; i++)
-   {
--    MALLOCARRAY(m[i], (unsigned) (nch - ncl + 1));
-+    m[i] = (float *) malloc2(nch - ncl + 1, sizeof (float));
-     if (m[i] == NULL)
-       pm_error("Unable to allocate memory for a matrix row.");
-     m[i] -= ncl;

netpbm-10.28-CAN-2005-2471.patch:
 pstopnm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Index: netpbm-10.28-CAN-2005-2471.patch
===================================================================
RCS file: /cvs/dist/rpms/netpbm/devel/netpbm-10.28-CAN-2005-2471.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- netpbm-10.28-CAN-2005-2471.patch	9 Aug 2005 07:16:50 -0000	1.1
+++ netpbm-10.28-CAN-2005-2471.patch	16 Aug 2005 14:36:00 -0000	1.2
@@ -1,18 +1,15 @@
---- netpbm-10.28/converter/other/pstopnm.c.CAN-2005-2471	2004-06-23 04:22:33.000000000 +0200
-+++ netpbm-10.28/converter/other/pstopnm.c	2005-08-09 08:41:42.000000000 +0200
-@@ -702,13 +702,13 @@
- 
-     if (verbose) {
-         pm_message("execing '%s' with args '%s' (arg 0), "
--                   "'%s', '%s', '%s', '%s', '%s', '%s', '%s'",
-+                   "'%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s'",
+--- netpbm-10.29/converter/other/pstopnm.c.CAN-2005-2471	2005-08-15 02:39:46.000000000 +0200
++++ netpbm-10.29/converter/other/pstopnm.c	2005-08-16 15:38:15.000000000 +0200
+@@ -711,11 +711,11 @@
+                    "'%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s'",
                     ghostscriptProg, arg0,
--                   deviceopt, outfileopt, gopt, ropt, "-q", "-dNOPAUSE", "-");
-+                   deviceopt, outfileopt, gopt, ropt, "-q", "-dNOPAUSE", "-dPARANOIDSAFER", "-");
+                    deviceopt, outfileopt, gopt, ropt, "-q", "-dNOPAUSE", 
+-                   "-dSAFER", "-");
++                   "-dPARANOIDSAFER", "-");
      }
  
      execl(ghostscriptProg, arg0, deviceopt, outfileopt, gopt, ropt, "-q",
--          "-dNOPAUSE", "-", NULL);
+-          "-dNOPAUSE", "-dSAFER", "-", NULL);
 +          "-dNOPAUSE", "-dPARANOIDSAFER", "-", NULL);
      
      pm_error("execl() of Ghostscript ('%s') failed, errno=%d (%s)",


Index: netpbm.spec
===================================================================
RCS file: /cvs/dist/rpms/netpbm/devel/netpbm.spec,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- netpbm.spec	15 Aug 2005 20:13:55 -0000	1.43
+++ netpbm.spec	16 Aug 2005 14:36:00 -0000	1.44
@@ -1,7 +1,7 @@
 Summary: A library for handling different graphics file formats.
 Name: netpbm
-Version: 10.28
-Release: 6
+Version: 10.29
+Release: 1
 License: freeware
 Group: System Environment/Libraries
 URL: http://netpbm.sourceforge.net/
@@ -18,10 +18,7 @@
 Patch8: netpbm-10.24-nodoc.patch
 Patch9: netpbm-10.28-gcc4.patch
 Patch10: netpbm-10.27-bmptopnm.patch
-Patch11: netpbm-10.27-libpm.patch
-Patch12: netpbm-10.27-pnmtojpeg.patch
-Patch13: netpbm-10.28-pbmtolj.patch
-Patch14: netpbm-10.28-CAN-2005-2471.patch
+Patch11: netpbm-10.28-CAN-2005-2471.patch
 Buildroot: %{_tmppath}/%{name}-root
 BuildPrereq: libjpeg-devel, libpng-devel, libtiff-devel, perl
 Obsoletes: libgr
@@ -76,10 +73,7 @@
 %patch8 -p1 -b .nodoc
 %patch9 -p1 -b .gcc4
 %patch10 -p1 -b .bmptopnm
-%patch11 -p1 -b .libpm
-%patch12 -p1 -b .pnmtojpeg
-%patch13 -p1 -b .pbmtolj
-%patch14 -p1 -b .CAN-2005-2471
+%patch11 -p1 -b .CAN-2005-2471
 
 ##mv shhopt/shhopt.h shhopt/pbmshhopt.h
 ##perl -pi -e 's|shhopt.h|pbmshhopt.h|g' `find -name "*.c" -o -name "*.h"` ./GNUmakefile
@@ -178,6 +172,12 @@
 %{_mandir}/man5/*
 
 %changelog
+* Tue Aug 16 2005 Jindrich Novy <jnovy at redhat.com> 10.29-1
+- update to 10.29
+- drop upstreamed .libpm, .pnmtojpeg, .pbmtolj patches
+- update .CAN-2005-2471 patch
+- regenerate man pages
+
 * Mon Aug 15 2005 Jindrich Novy <jnovy at redhat.com> 10.28-6
 - link libnetpbm.so against -lm (#165980)
 


Index: sources
===================================================================
RCS file: /cvs/dist/rpms/netpbm/devel/sources,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- sources	10 Jun 2005 09:16:43 -0000	1.17
+++ sources	16 Aug 2005 14:36:00 -0000	1.18
@@ -1,2 +1,2 @@
-f1b766be9e0ba2470f762ee0717b834f  netpbm-10.28.tar.bz2
-41f281d183afded0118f2fde2b8b79f1  netpbmdoc-10.28.tar.bz2
+51bd472bde201b3dad0bccfb8c6bf47e  netpbm-10.29.tar.bz2
+21c6d8ba70222b1afdddcdffe6517bdc  netpbmdoc-10.29.tar.bz2


--- netpbm-10.27-libpm.patch DELETED ---


--- netpbm-10.27-pnmtojpeg.patch DELETED ---


--- netpbm-10.28-pbmtolj.patch DELETED ---




More information about the fedora-cvs-commits mailing list