Commit graph

20 commits

Author SHA1 Message Date
adam
dd92c89ea7 Pass LDFLAGS when building progs; required e.g. for -isysroot on MacOSX 2010-10-28 07:09:13 +00:00
drochner
e07ba045f8 update to 10.35.73
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
2010-02-19 18:25:44 +00:00
schwarz
a4efb4c0c3 added support for IRIX 5 and in particular the SGI IDO cc.
patches were discussed with Bryan Henderson, maintainer of the netpbm
code.
2006-10-03 22:56:50 +00:00
adam
6ec6761023 This is a security update, which fixes a buffer overflow vulnerability.
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.
2006-06-25 06:35:58 +00:00
wiz
00d3efb978 Add patches for some issues from the known-bugs page, including
one that should fix PR 33347 by martijn (build on amd64).

Bump PKGREVISION.
2006-05-14 16:39:05 +00:00
adam
2fc4f59354 Changes 10.33:
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.
2006-04-17 08:11:17 +00:00
adam
0edcdc89c0 Fixed symbolic link to pamdepth 2006-03-02 23:17:36 +00:00
adam
bf1c4d5003 Changes 10.32:
* 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
2006-02-27 22:01:16 +00:00
joerg
71ab31518c Save a bunch of coredump message in my dmesg and allow groff to compile
by fixing pnmtopng's opt parsing. Bump revision.
2006-02-02 17:01:17 +00:00
adam
9e9c489b88 Changes 10.30:
Add pambayer.

Add pamrgbatopng.

Add pamtilt.  Thanks Gregg Townsend <gmt@cs.arizona.edu>.

pamtotiff: create from pnmtotiff.

pamtofits: create from pnmtofits.

pamaddnoise: crate from pnmaddnoise.

pamarith: Add -divide.

pammasksharpen: Add -sharpness.

pnmtopng: add -comp_mem_level, -comp_strategy, -comp_method,
-comp_window_bits, -comp_buffer_size.

pnmtopng: use Shhopt command line processor; replace
-chroma with -rgb, -phys with -size, -time with -modtime.

pnmremap: Handle multiple image stream.

xpmtoppm: Expand capacity from 2K character input lines to
8K character input lines.

libnetpbm: improved messages for "color xxx cannot be
represented precisely with maxval M"

libnetpbm color specification parsing:  Improve warning message
about rounding.

libnetpbm/everything: speed up ppm_writeppmrow() and
pgm_writepgmrow() by doing one fwrite per row instead of
a pgm_writerawsample() per sample.

pnmtopng: fix "meaningful bits" optimization of PGM so it
optimizes all the way instead of stopping at 4 bits.

pnmtopng: fix crash when no -alpha option, due to dereferencing
of undefined alpha_mask.

pnmtopng: fix bug: arbitrary color made transparent in
paletted PNG when nothing should be transparent.

pnmtops: bug: selects wrong Postscript level.

bmptopnm: Don't crash on BMP with no color map.

bmptopnm: Fix wrong file name in error messages.

ppmtowinicon: use REALLOCARRAY instead of arithmetic-overflowing
realloc().

anytopnm: fix bug: fails when 'file' database doesn't
have mime type but does have human-readable type.

manweb: recognize directory as not executable in search of PATH.

pgm_allocrow(), ppm_allocrow(), pnm_allocrow(): cure
arithmetic overflow.

libnetpbm: On plain formats, check for sample value exceeding
maxval.

libnetpbm: reject maxval > 65535 in "pam" functions.

pamarith: Use normalized libnetpbm facilities to get
proper accuracy.  Thanks Thomas Henlich
<http://sourceforge.net/users/thenlich/>.

pamarith: fix bug: shift functions don't work when maxvals
are not identical.

pamarith: fix rounding error on multiply.

pgmtexture: correct calculation of normalizing constants
for d > 1.  Thanks Marc Breithecker
<Marc.Breithecker@informatik.uni-erlangen.de>.

pnmnorm: fix divide by zero crash.

pnmnorm: fix bug that doesn't let you specify
-luminosity, -colorvalue, or -saturation.

ilbmtoppm: fix variable used before set.

pnmtofits: fix 16 bit sample values > 2**15.

pnmtopsnr: minor adjustments to messages.

pnmnorm: don't crash when wvalue == bvalue.  Thanks Thomas
<http://sourceforge.net/users/thenlich/>.

pnmnorm: fix rounding of output values.  Thanks Thomas
<http://sourceforge.net/users/thenlich/>.

pnmhisteq: Fix external map to have width maxval + 1 instead
of maxval, so full intensity input pixels map properly.

pnmhisteq: Fix -rmap.

Fix typos in error messages in various programs.

pgmmedian: change syntax to Netpbm standard.

pammasksharpen: fix signedness bug that caused random bright
pixels at edges.

pammasksharpen: fix bug with maxval != 255.

Clean up a bunch of function prototypes so some broken
compilers don't complain about missing "const" in them.

Remove dependency of pnmtops on basename().  It isn't in
some C libraries and we don't want to mess with linking
extra libraries.

Build of ppmsvgalib: work properly when LINUXSVGALIB is
a "default path" value such as "libvga.so".
2005-10-19 09:30:08 +00:00
schmonz
644ab99376 Apply patches for the three 10.29 bugs listed on SourceForge we
hadn't already fixed. The list:

http://sourceforge.net/project/shownotes.php?group_id=5128&release_id=349291

The problems fixed in this PKGREVISION bump:

* pnmtopng: can crash due to wild pointer if you don't use the
    -alpha option.
* pammasksharpen:  Multiple bugs cause it to produce incorrect
    output.
* pnmhisteq: -rmap doesn't work.

Addresses my own PR pkg/31314, with thanks to Nathan Arthur for
bringing these patches to my attention.
2005-09-20 05:04:11 +00:00
adam
7697e1866b Changes 10.29:
Add ppmdraw.

Add pammixinterlace.  Thanks Bruce Guenter <bruceg@em.ca>.

Add pgmmedian.

Add pnmaddnoise.

pnmtopclxl: add -rendergray option.

pnmtopclxl: add -jobsetup option.

pstopnm: add -dSAFER Ghostscript option.

pnmcrop: add -margin option.

pnmcrop: add -borderfile option.

pnmnorm: add -luminosity (which was already default),
-colorvalue, and -saturation.

pnmtopng: Don't include any alpha info if supplied alpha mask
is all opaque.

ppmcie: Make white point mark more visible.

pamdice: Remove restriction of 100 slices in each direction.

pnmtopng: Fix bug: erroneous transparent pixels when supplied
alpha mask is all opaque.

Fix bytesToWordInt(): converts incorrectly on a machine that
has pointer size != word size and uses the general case code.

libnetpbm: fix basic pm_readlittleshort() bug introduced
in 10.27.  Affects mdatopbm, rawtopgm, lispmtopgm,
pcxtoppm, winicontoppm, bmptopnm, sirtopnm, xwdtopnm,
cameratopam.

pamlookup: fix universal crash.  Thanks "Colley, Anthony
W." <Anthony.Colley@ngc.com>

pbmtolj: fix bug from 10.28: crashes with a line which is
a multiple of 8 plus 7 pixels wide not counting white right
margin.

ppmtompeg: fix uname() rc test (sometimes > 0 is success).
2005-08-22 11:59:31 +00:00
salo
4619ac35c7 Update to version 10.28
- security fix for SA16184, patch from Debian

Changes:
- ppmtompeg: fix insecure temp file creation
- jpeg2000: don't do unsafe temporary files
- add cameratopam (Dave Coffin's dcraw)
- various other bugfixes
2005-08-06 14:07:07 +00:00
adam
4c013029f4 These patches are no longer needed 2005-01-18 14:17:07 +00:00
grant
32fb85d783 the "pgmramp" program included in this package needs to be linked
against libm for fabs().

this is the same fix as is already in netpbm-latest.
2004-07-10 13:29:34 +00:00
wiz
fbb2503ad9 Update to 9.24.
pkgsrc changes:
Don't use libtool any longer to reduce patches.
Add USE_PERL, since 4 scripts depend on it.
program changes:
Lots of new converters/modification programs and scripts, e.g. pbmtonokia,
ppmtolj, and pnmtopalm. Better alpha support.
Also, lots of bug fixes.
2002-03-14 22:21:42 +00:00
wiz
8b4fe32349 Update to netpbm-9.5.
Fixes pkg/8949.
Changes:
o Extend formats to allow multiple images per file.  Add -allimages
  option to pnmfile.  Add pnmsplit.  Extend pnmtops.
o Add pbmtowbmp, wbmptopbm.  Thanks Terje Sannum.
o ppmtobmp: Add 24 bit (truecolor) capability.
o pnmcut: easier, more expressive syntax for specifying what to cut.
o pnminterp: handle maxval != 255, convert to use Netpbm libraries.
o Translate pstopnm from Csh to C, eliminate dependency on the 'bc'
  program.
o Fix bug in tiff library build which caused null soname.
o Add optParseopt2() to shhopt.a so you can use long options with one
  hyphen instead of two.
o giftopnm: fix bug with variable used before set.  Fix bug (coding
  error -- 0=>i).  Unknown impact.
o bmptoppm: fix bug with 24 bit (truecolor) Windows BMPs.
o xwdtopnm: fix one more bug with bits_per_item <> bits_per_pixel.
o Fix ppmtompeg build bug with static libraries.
o Make build clean with gcc -ansi (albeit with some files that need
  extensions declaring the _BSD_SOURCE etc.).
o Rebase pnmtopng, pngtopnm on Pnmtopng 2.37.4.
o pbmtolj: fix bug where blank lines get discarded.  Thanks Charles
  Howes.
o ppmtompeg: fix bug with "PNM" format files with maxval != 255. Get
  rid of built-in PPM file parsing.
o Fix 'make install' where mkinstalldirs is not found.
o Fix bug where rle_global.c would not compile with GNU C Library 2.
2000-07-10 11:12:09 +00:00
dmcmahill
052b7407d2 forgot to cvs add this file before previous commit... 2000-06-24 01:49:03 +00:00
tron
e8caa7879c Update "netpbm" package to version 9.2. There are too many changes and
bug fixes to list here. Main new features are shared libraries, JPEG
and JBIG support.
2000-05-17 10:13:19 +00:00
tron
f9cc3e2fe3 Major cleanup of "netpbm" package based on patches supply by
John F. Woods in PR pkg/6763 and Rob Windsor in PR pkg/6779.
1999-01-10 23:52:15 +00:00