fixed upstream.
14.11.23 BJH Release 10.68.02
pambackground: fix bug: segfault or incorrect results in most
cases. Thanks Ludolf Holzheid (ludolf.holzheid@gmx.de).
Introduced in Netpbm 10.37 (December 2006).
14.09.28 BJH Release 10.68.01
Windows build: fix universal build failure with "No rule to make
...icon.netpbm.oLINKERISCOMPILER...". Broken in Netpbm 10.67
(June 2014).
14.09.26 BJH Release 10.68.00
Split pgmcrater into pamcrater and pamshadedrelief.
pnmconvol: add -bias .
Remove pnmcomp, install a pnmcomp symlink for pamcomp.
Fix incorrect option parsing when there are multiple common
options (e.g. -plain -quiet). Always broken. (Possibility of
specifying multiple common options that don't cause the program
to ignore every other option (like -version) was new in Netpbm
10.10 (October 2002).
cameratopam: fix buffer overflow. Always present. (cameratopam
was new in Netpbm 10.28 (June 2005)).
cameratopam: fix incorrect output introduced in Netpbm 10.51
(June 2010).
ppmtopict: Fix unconditional crash. Introduced in
Netpbm 10.52 (September 2010).
pcdovtoppm: Fix crash due to invalid operator == on some
systems. Always broken (pcdovtoppm was new sometime between
Netpbm 9.25 (March 2002) and Netpbm 10.11 (Februrary 2010)).
Build: change _XOPEN_SOURCE from 600 back to 500 in 7 files. It
was changed from 500 to 600 in Subversion revision 1731 in
Netpbm 10.60 (September 2012) because that made a similar
version of Netpbm compile on Mac OSX. Without it, strdup did
not get defined. But this is apparently a bug in Mac OSX, since
X/Open 500 does have strdup. Furthermore, many other Netpbm
files use strdup and apparently compile OK on Mac OSX without
600. Finally, we see today that Illumos system header files
deliberately kill the compilation if the compiler is pre-C99 and
_XOPEN_SOURCE is 600. So we go back to 500 and if the problem
on Mac OSX gets reported again, we will look more deeply.
Build: change _XOPEN_SOURCE from 600 back to 500 in
jpeg2ktopam.c and pamtojpeg2k.c. It was changed from 500 to 600
in Netpbm 10.41 (December 2007), reportedly to get int_fast32_t,
etc. defined on AIX, but other files that use int_fast32_t
don't have it today, so that must be wrong. See above for the
drawback of 600.
Build: fix undefined symbols in fiasco converters with
static libraries.
Build: provide means of setting the default search path for
rgb.txt color database via config.mk.
Build: fix bug which prevents JBIG converters from building with
internal JBIG library. Introduced in 10.67.00.
Build: fix bug which makes build of Ppmsvga fail (which is
attempted only on a system with libvga). Introduced in Netpbm
10.63 (June 2013)
Build: fix build failure in an environment that does not have
__inline . Introduced some time between Netpbm 10.26
(January 2005) and Netpbm 10.35 (August 2006).
Build: fix build failure on SCO OpenServer due to SIGURG not
existing. Broken in Netpbm 10.49 (December 2009).
Build: Declare _XOPEN_SOURCE >= 500 in source files that use
strdup.
Build: fix compile failure due to use of reserved word
'stdout'.
Build with 'installosf': Fix crash due to invalid operator ==
on some systems.
Add a second tarball consisting of the html-to-man converted documenation,
and overwrite dummy man pages with those.
Changes in 10.67.04:
14.09.04 BJH Release 10.67.04
pcdovtoppm: Fix crash due to invalid operator == on some
systems. Always broken (pcdovtoppm was new sometime between
Netpbm 9.25 (March 2002) and Netpbm 10.11 (Februrary 2010)).
Build: fix compile failure due to use of reserved word
'stdout'.
Build with 'installosf': Fix crash due to invalid operator ==
on some systems.
Build: fix undefined symbols in fiasco converters with
static libraries.
Build: provide means of setting the default search path for
rgb.txt color database via config.mk.
14.06.29 BJH Release 10.35.93
pamsharpness: put primary output on Standard Output instead of
on Standard Error as a Netpbm message.
jpegtopnm -dumpexif: fix incorrect display of resolution.
Always broken. (-dumpexif was new in Netpbm 9.18 September
2001).
jpegtopnm -dumpexif: fix truncated make, model, or datetime.
Always broken. (-dumpexif was new in Netpbm 9.18 September
2001).
jpegtopnm -dumpexif: fix wild pointer with invalid EXIF data.
Always broken. (-dumpexif was new in Netpbm 9.18 September
2001).
Build: fix dependencies in .deb package so they work with Debian
6 at least. Always broken (.deb capability was new in 10.35.92).
14.03.29 BJH Release 10.35.92
ppmrelief: fix out-of-bound values in output. Always broken.
Thanks Prophet of the Way <afu@wta.att.ne.jp>.
ppmrelief: fix crash when input image is too small. Always
broken. Thanks Prophet of the Way <afu@wta.att.ne.jp>.
pgmtexture: fix buffer overflow. Always broken. (Program
was added in primordial Netpbm in 1991).
pamdeinterlace: fix incorrect output with -takeodd and image has
only one row. Always broken (pamdeinterlace was introduced in
Netpbm 9.21 (January 2001)). Thanks Prophet of the Way
<afu@wta.att.ne.jp>.
13.12.24 BJH Release 10.35.91
pbmtoepsi: fix handling of all-white image. Always broken.
Thanks Prophet of the Way <afu@wta.att.ne.jp>.
pbmtoepsi: fix excessively long raster line. Always broken.
Thanks Prophet of the Way <afu@wta.att.ne.jp>.
pnmshear: fix incorrect determination of background color.
Always broken.
ppmpat: fix crash with -squig with aspect ratio < 1:25 or
> 25:1. Thanks Prophet of the Way <afu@wta.att.ne.jp>.
Always broken.
pamgauss: Fix typo in message.
13.09.26 BJH Release 10.35.90
ppmtoxpm: fix bug: ignores inability to open the specified color
dictionary file (-rgb) and just doesn't use color names.
Introduced in Netpbm 10.15 (April 2003).
ppmforge. fix crash when -mesh is 1 or less. Always broken
(program was added in Pbmplus (October 1991). Thanks Prophet of
the Way <afu@wta.att.ne.jp>.
ppmforge: fix array bounds violation. Always broken (program
was added in Pbmplus (October 1991). Thanks Prophet of the Way
<afu@wta.att.ne.jp>.
13.05.03 BJH Release 10.35.89
ppmtowinicon: fix bug: sometimes creates image truncated in the
middle of the AND mask. Always broken (program was new in
Netpbm 9.3 (June 2000)).
pamtilt: fix bug: incorrect output or invalid memory access
crash. Always broken (program was new in Neptbm 10.30
(October 2005)).
13.02.20 BJH Release 10.35.88
ppmpat: fix wrong output with -poles.
Windows build: fix compile error on urt/rle_open_f.c due to
Unix process management stuff.
leaftoppm: fix incorrect determination of whether input is
Interleaf on 64 bit systems. Always broken.
cmuwmtopbm: fix incorrect determination of whether input is
a CMU window manager bitmap on 64 bit systems. Always broken.
12.12.05 BJH Release 10.35.87
pamtotiff: fix bug: XRESOLUTION, YRESOLUTION, and RESOLUTIONUNIT
not allowed in -tags. Broken at least since 10.35.00.
pnmmontage: fix random stuff placed in unoccupied space in the
output image. Always broken (program was new in 9.10 (January
2001).
pnmpsnr: fix crash when invoked (invalidly) with only one
argument. Always broken.
pampick: fix wild pointer in command line parsing. Bug has
always been there.
pamgauss: Fix bug: erroneously says -maxval is too big.
Always broken (Pamgauss was added in 10.23 (July 2004).
12.07.23 BJH Release 10.35.86
ppmtobmp: fix failure with "internal error" message on all
uses. Broken in 10.35.78.
Build: rename getline() in xpmtoppm.c to avoid collision
with some libc. Always broken.
12.06.21 BJH Release 10.35.85
configure: work around Perl bug that causes 'configure' to
falsely conclude Svgalib is installed.
Build: move -lm to end of -l's. Broken at least since 10.35.
12.02.14 BJH Release 10.35.84
pamscale: fix all black output with resampling. Always broken.
pgmtexture: fix integer overflow in difference variance.
Always broken.
pgmtexture: fix array bounds violations in various calculations.
Always broken.
Build: always put Netpbm header files before external library
header files in search path.
11.11.25 BJH Release 10.35.83
pngtopnm: fix crash with invalid tIME chunk. Always broken.
11.09.25 BJH Release 10.35.82
pnmtopng: fix bug: with -alpha specifying a mask which contains
no fully transparent area, output PNG is fully opaque.
Introduced in 10.29.
pnmquant: work with older Perl that doesn't have 3-argument open.
pnmtops: fix message: says "from top edge" where it means
"from bottom edge."
11.07.10 BJH Release 10.35.81
pgmtexture: fix wrong sum variance result. Wrong since the
beginning. Thanks Francois P. S. Luus <fpsluus@gmail.com>.
- bmptopnm: Don't crash on invalid zero value of image height in
the BMP header of a compressed file. Always broken.
- bmptopnm: don't crash on large invalid value of 'colorsused' in
the BMP header.
- ilbmtoppm: Don't crash on image that has a transparent color
index, but no color map.
"pkgsrc" changes:
- Add a lot of patches written by Thomas Klausner and me to make this
compile with PNG 1.5.
Changes since version 10.35.76:
- ppmtompeg: fix crash with free of unallocated memory.
- Build: don't expect snprintf() to exist.
- Build: don't use <strings.h> or bzero().
* Pnmtopng: -libversion doesn't report level of linked libz.
It was a modularity violation and caused build failures on
Mac OS X, because Pnmtopng per se doesn't know about libz --
it's used by libpng.
* Build: don't fail due to SIGRTMIN, SIGRTMAX being undefined.
Changes 10.35.75:
* palmtopnm: fix for pixel size 16.
* pamscale: fix -reduce. Introduced in 10.27.
* configure: default to 'none' for Svgalib if it doesn't appear to
be installed (per 'ldconfig'). Ported from 10.38, released March 2007.
Changes 10.35.74:
* pbmtext: don't crash when font file contains a blank line.
Fail cleanly.
* ppmtoilbm: fix arithmetic overflow with image dimension
represented as 16 bit integer.
* pbmpage: fix garbage output.
* pnmhistmap: Fix crash with -width. Always broken.
* Build: don't fail due to SIGPWR being undefined.
is asking for trouble. On solaris these options are mutually exclusive
because 600 needs C99 and 500 is not allowed to use C99.
I lowered the requirement to _XOPEN_SOURCE=500 and the build succeeded.
While here I'll note that PR pkg/42897 (netbpm link error on Solaris 10)
should now be fixed by libpng-1.2.41nb1.
changes: many bugfixes, especially:
xpmtoppm: fix wild pointer with color index > 127.
which fixes a stack-based buffer overflow (CVE-2009-4274)
pkgsrc change: use a fixed PLIST instead of generating on install,
helps to detect problems
Changes 10.34:
* Add pamthreshold, pamx, pamtoxvmini.
* pammasksharpen: Add -threshold.
* pnmtopng: make "N colors found" message verbose-only.
* pnmtopng: make "no room in palette" message non-verbose.
* picttoppm: Tolerate various PICT file corruptions.
* picttoppm: Don't issue warning message when file named
'fontdir' doesn't exist.
* libnetpbm: Add ppmd_fill_path().
* ppmtobmp: Fix for PBM input.
* bmptopnm: Don't crash on BMP with no color map.
* bmptopnm: Fix wrong file name in error messages.
* ppmtogif: fix bug: always produces garbage output.
* ppmtompeg: fix input from Standard Input.
* pnmflip: fix bug: -rotate90, -rotate180, and -rotate270
(and synonyms) don't work when followed by other rotation options.
* ppmtoilbm: Fig bug: generates more planes than necessary.
* pamtofits: fix buffer overflow in asembling header.
* picttoppm: fix bug - interprets some images wrong because of
bogus "rowBytes" value.
* Redo asprintfN(), etc. so as not to use va_list in a way
that doesn't work on some machines.
* cameratopam: remove definition of memmem() so it doesn't collide
with same in some C libraries. Add memmemN() and MEMEQ to libnetpbm.
* Fix build of filename.o.
Add pamtosvg.
g3topbm: Add -width, -paper_size.
libnetpbm / most newer programs: Fix bug that produces
plain format output when it should be raw because
pnm_readpaminit() does not set 'plainformat' and most
programs just copy the input pam to the output pam.
pamflip: fix bug with left/right flip of PBM that has
width an even multiple of 8 plus something less than 8.
pnmquant: turn on autoflush when creating seekable file.
install: fix symbolic link pnmdepth -> pamdepth.
build: fix some importinc dependencies.
* Add rlatopam.
* Add pgmmake.
* bmptopnm: Understands RLE4/RLE8 compressed BMP.
* pnmgamma: Add -bt709tosrgb -srgbtobt709, -bt709tolinear,
-lineartobt709, -gamma, -rgamma, -ggamma, -bgamma (gammma
values were formerly specified as parameters).
* pnmgamma: Rename -cieramp to -bt709ramp.
* ppmdraw: work on multi-image streams.
* anytopnm: add mime time image/x-ms-bmp for BMP
* pamchannel: works on multi-image streams.
* pamstack: works on multi-image streams.
* Convert pnmdepth to pamdepth. Add multi-image stream
capability.
* pamcut: works on multi-image streams.
* pnmtops: allow -flate and -rle together.
* pnmtops: overhaul of -psfilter output.
* pnmrotate: fine adjustment to arithmetic (rounding,
pixel quantization).
* pbmtopsg3: Put currentfile ... in exec block.
* pbmtopsg3: Add missing /EndOfBlock.
* pnmtops: Don't claim EPSF if using setpagedevice.
* giftopnm: do "reading image sequence N" message only if
being verbose.
* ppmtobmp, bmptopnm: major speed improvement for PBM.
* other