Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package netpbm for openSUSE:Factory checked in at 2026-11-20 14:44:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/netpbm (Old) and /work/SRC/openSUSE:Factory/.netpbm.new.1251 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "netpbm" Fri Nov 20 14:44:03 2026 rev:91 rq:1398594 version:11.16.5 Changes: -------- --- /work/SRC/openSUSE:Factory/netpbm/netpbm.changes 2026-11-13 20:12:43.833431822 +0100 +++ /work/SRC/openSUSE:Factory/.netpbm.new.1251/netpbm.changes 2026-11-20 14:44:50.267591648 +0100 @@ -1,0 +2,14 @@ +Thu Nov 19 07:54:44 UTC 2026 - Petr Gajdos <[email protected]> + +- version update to 11.16.5: + * Fix "color index exceeds colormap size" failure introduced + in Release 11.16.04 + * build: restore ability to use external JBIG library instead of + built-in one. Broken in Netpbm 11.16.00 (September 2026). + * rasttopnm: fix arbitrary memory access when colormapped image + contains a color index not in the color map. Always broken + (predecessors to rasttopnm and pnmtorast were in primordial + Netpbm in 1989). +- fixes CVE-2026-112276 [bsc#1286094] + +------------------------------------------------------------------- Old: ---- netpbm-11.16.3-documentation.tar.bz2 netpbm-11.16.3-nohpcdtoppm-noppmtompeg.tar.bz2 New: ---- netpbm-11.16.5-documentation.tar.bz2 netpbm-11.16.5-nohpcdtoppm-noppmtompeg.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ netpbm.spec ++++++ --- /var/tmp/diff_new_pack.XDOk9n/_old 2026-11-20 14:44:52.011665153 +0100 +++ /var/tmp/diff_new_pack.XDOk9n/_new 2026-11-20 14:44:52.013665237 +0100 @@ -23,7 +23,7 @@ %define libmin 116 %define libver %{libmaj}.%{libmin} Name: netpbm -Version: 11.16.3 +Version: 11.16.5 Release: 0 Summary: A Graphics Conversion Package License: BSD-3-Clause AND GPL-2.0-or-later AND IJG AND MIT AND LicenseRef-SUSE-Public-Domain ++++++ netpbm-11.16.3-documentation.tar.bz2 -> netpbm-11.16.5-documentation.tar.bz2 ++++++ /work/SRC/openSUSE:Factory/netpbm/netpbm-11.16.3-documentation.tar.bz2 /work/SRC/openSUSE:Factory/.netpbm.new.1251/netpbm-11.16.5-documentation.tar.bz2 differ: char 11, line 1 ++++++ netpbm-11.16.3-nohpcdtoppm-noppmtompeg.tar.bz2 -> netpbm-11.16.5-nohpcdtoppm-noppmtompeg.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm-11.16.3/converter/other/jbig/Makefile new/netpbm-11.16.5/converter/other/jbig/Makefile --- old/netpbm-11.16.3/converter/other/jbig/Makefile 2026-11-11 09:02:06.192620415 +0100 +++ new/netpbm-11.16.5/converter/other/jbig/Makefile 2026-11-18 16:30:51.621157015 +0100 @@ -38,16 +38,21 @@ SUBDIRS += libjbig else # It's not our internal version; user's on his own to make sure it's built + LIBJBIG_ADAPTER_OBJ = libjbig_external.o endif -OBJECTS = $(BINARIES:%=%.o) -MERGE_OBJECTS = $(BINARIES:%=%.o2) +EXTRA_OBJECTS = $(LIBJBIG_ADAPTER_OBJ) + +OBJECTS = $(BINARIES:%=%.o) $(EXTRA_OBJECTS) +MERGE_OBJECTS = $(BINARIES:%=%.o2) $(EXTRA_OBJECTS) all: $(BINARIES) include $(SRCDIR)/common.mk -$(BINARIES): %: %.o $(JBIGLIB_DEP) $(LIBOPT) +pnmtojbig jbigtopnm: ADDL_OBJECTS = $(LIBJBIG_ADAPTER_OBJ) + +$(BINARIES): %: %.o $(LIBJBIG_ADAPTER_OBJ) $(JBIGLIB_DEP) $(LIBOPT) $(BINARIES): LDFLAGS_TARGET = $(shell $(LIBOPT) $(JBIGLIB)) $(INTERNAL_JBIGLIB): $(BUILDDIR)/$(SUBDIR)/libjbig FORCE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm-11.16.3/converter/other/jbig/jbigtopnm.c new/netpbm-11.16.5/converter/other/jbig/jbigtopnm.c --- old/netpbm-11.16.3/converter/other/jbig/jbigtopnm.c 2026-11-11 09:02:06.192620415 +0100 +++ new/netpbm-11.16.5/converter/other/jbig/jbigtopnm.c 2026-11-18 16:30:51.622157017 +0100 @@ -16,9 +16,10 @@ #include <jbig.h> -#include "pnm.h" #include "shhopt.h" #include "mallocvar.h" +#include "libjbig_external.h" +#include "pnm.h" #define BUFSIZE 8192 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm-11.16.3/converter/other/jbig/libjbig_external.c new/netpbm-11.16.5/converter/other/jbig/libjbig_external.c --- old/netpbm-11.16.3/converter/other/jbig/libjbig_external.c 1970-01-01 01:00:00.000000000 +0100 +++ new/netpbm-11.16.5/converter/other/jbig/libjbig_external.c 2026-11-18 16:30:51.625157023 +0100 @@ -0,0 +1,52 @@ +/*============================================================================= + libjbig_external +=============================================================================== + This adapts external libjbig to programs written for the Netpbm internal + libjbig. Link this with a program in addition to the external libjbig. + Don't link this if you're linking the internal libjbig. +=============================================================================*/ + +#include <jbig.h> + +#include "libjbig_external.h" + +void +jbg_enc_set_order(struct jbg_enc_state * const s, + int const order) { + + jbg_enc_options(s, order, -1, -1, -1, -1); +} + + + +void +jbg_enc_set_algorithm(struct jbg_enc_state * const sP, + int const algorithm) { + + jbg_enc_options(sP, -1, algorithm, -1, -1, -1); +} + + + +void +jbg_enc_set_stripes(struct jbg_enc_state * const sP, + int const stripes) { + + jbg_enc_options(sP, -1, -1, stripes, -1, -1); +} + + + +void +jbg_enc_set_maxoffset(struct jbg_enc_state * const sP, + int const maxoffset) { + + jbg_enc_options(sP, -1, -1, -1, maxoffset, -1); +} + +const char * +jbg_strerrorext(int errnum) { + return jbg_strerror(errnum); +} + + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm-11.16.3/converter/other/jbig/libjbig_external.h new/netpbm-11.16.5/converter/other/jbig/libjbig_external.h --- old/netpbm-11.16.3/converter/other/jbig/libjbig_external.h 1970-01-01 01:00:00.000000000 +0100 +++ new/netpbm-11.16.5/converter/other/jbig/libjbig_external.h 2026-11-18 16:30:51.626157025 +0100 @@ -0,0 +1,23 @@ +#ifndef LIBJBIG_EXTERNAL_INCLUDED +#define LIBJBIG_EXTERNAL_INCLUDED + +void +jbg_enc_set_order(struct jbg_enc_state * const s, + int const order); + +void +jbg_enc_set_algorithm(struct jbg_enc_state * const s, + int const algorithm); + +void +jbg_enc_set_stripes(struct jbg_enc_state * const s, + int const l0); + +void +jbg_enc_set_maxoffset(struct jbg_enc_state * const s, + int const mx); + +const char * +jbg_strerrorext(int errnum); + +#endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm-11.16.3/converter/other/jbig/pnmtojbig.c new/netpbm-11.16.5/converter/other/jbig/pnmtojbig.c --- old/netpbm-11.16.3/converter/other/jbig/pnmtojbig.c 2026-11-11 09:02:06.192620415 +0100 +++ new/netpbm-11.16.5/converter/other/jbig/pnmtojbig.c 2026-11-18 16:30:51.627157026 +0100 @@ -45,6 +45,7 @@ #include "pm_c_util.h" #include "mallocvar.h" #include "shhopt.h" +#include "libjbig_external.h" #include "pnm.h" static unsigned long total_length = 0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm-11.16.3/converter/other/rasttopnm.c new/netpbm-11.16.5/converter/other/rasttopnm.c --- old/netpbm-11.16.3/converter/other/rasttopnm.c 2026-11-11 09:02:08.531632539 +0100 +++ new/netpbm-11.16.5/converter/other/rasttopnm.c 2026-11-18 16:30:51.621157015 +0100 @@ -244,6 +244,9 @@ for (col = 0; col < cols; ++col) { if (colorMapped && !useIndexForColor) { + if (*byteP >= colorMap.length) + pm_error("Color index %u exceeds colormap size %u", + *byteP, colorMap.length); if (grayscale) PNM_ASSIGN1(xelrow[col], colorMap.map[0][*byteP]); else @@ -289,12 +292,17 @@ g = *byteP++; r = *byteP++; } - if (colorMapped && !useIndexForColor) + if (colorMapped && !useIndexForColor) { + if (r >= colorMap.length || g >= colorMap.length || + b >= colorMap.length) + pm_error("Color index exceeds colormap size %u", + colorMap.length); + PPM_ASSIGN(xelrow[col], colorMap.map[0][r], colorMap.map[1][g], colorMap.map[2][b]); - else + } else PPM_ASSIGN(xelrow[col], r, g, b); } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm-11.16.3/doc/HISTORY new/netpbm-11.16.5/doc/HISTORY --- old/netpbm-11.16.3/doc/HISTORY 2026-11-11 09:02:11.503647944 +0100 +++ new/netpbm-11.16.5/doc/HISTORY 2026-11-18 16:30:57.351167638 +0100 @@ -4,6 +4,21 @@ CHANGE HISTORY -------------- +26.11.15 BJH Release 11.16.05 + + Fix "color index exceeds colormap size" failure introduced + in Release 11.16.04 + +26.11.13 BJH Release 11.16.04 + + build: restore ability to use external JBIG library instead of + built-in one. Broken in Netpbm 11.16.00 (September 2026). + + rasttopnm: fix arbitrary memory access when colormapped image + contains a color index not in the color map. Always broken + (predecessors to rasttopnm and pnmtorast were in primordial + Netpbm in 1989). + 26.11.09 BJH Release 11.16.03 pnmtorast: fix incorrect output whenever image ends with a lone @@ -99,6 +114,9 @@ ppmglobe: fix bug: accepts only color names for the background color specification. Thanks Scott Pakin. + build: restore ability to use external JBIG library instead of + built-in one. Broken in Netpbm 11.16 (September 2026). + 26.09.28 BJH Release 11.16.00 add pamnoise. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm-11.16.3/version.mk new/netpbm-11.16.5/version.mk --- old/netpbm-11.16.3/version.mk 2026-11-11 09:02:12.338652272 +0100 +++ new/netpbm-11.16.5/version.mk 2026-11-18 16:30:57.175167312 +0100 @@ -1,3 +1,3 @@ NETPBM_MAJOR_RELEASE = 11 NETPBM_MINOR_RELEASE = 16 -NETPBM_POINT_RELEASE = 3 +NETPBM_POINT_RELEASE = 5
