Subject: CVS commit: pkgsrc/devel
To: None <pkgsrc-changes@NetBSD.org>
From: Blair Sadewitz <bjs@netbsd.org>
List: pkgsrc-changes
Date: 12/11/2007 05:27:05
Module Name:	pkgsrc
Committed By:	bjs
Date:		Tue Dec 11 05:27:05 UTC 2007

Modified Files:
	pkgsrc/devel/ncurses: Makefile Makefile.common distinfo
	pkgsrc/devel/ncursesw: Makefile

Log Message:
Add a distribution patch (by Thomas Dickey) containing Coverity fixes.
Bump revisions of both ncurses and ncursesw packages.

	 fixes based on Coverity report:
	 ------------------------------

	- remove dead code in test/bs.c
	- remove dead code in test/demo_defkey.c
	- remove an unused assignment in progs/infocmp.c
	- fix a limit check in tack/ansi.c tools_charset()
	- fix tack/ansi.c tools_status() to perform the VT320/VT420
	  tests in request_cfss().  The function had exited too soon.
	- fix a memory leak in tic.c's make_namelist()
	- fix a couple of places in tack/output.c which did not check for
	  EOF.
	- fix a loop-condition in test/bs.c
	- add index checks in lib_color.c for color palettes
	- add index checks in progs/dump_entry.c for version_filter()
	  handling of V_BSD case.
	- fix a possible null-pointer dereference in copywin()
	- fix a possible null-pointer dereference in waddchnstr()
	- add a null-pointer check in _nc_expand_try()
	- add a null-pointer check in tic.c's make_namelist()
	- add a null-pointer check in _nc_expand_try()
	- add null-pointer checks in test/cardfile.c
	- fix a double-free in ncurses/tinfo/trim_sgr0.c
	- fix a double-free in ncurses/base/wresize.c
	- add try/catch block to c++/cursesmain.cc

	other fixes prompted by inspection for Coverity report:
	------------------------------------------------------

	- modify ifdef's for c++ binding to use try/catch/throw statements
	- add a null-pointer check in tack/ansi.c request_cfss()
	- fix a memory leak in ncurses/base/wresize.c
	- corrected check for valid memu/meml capabilities in
	  progs/dump_entry.c when handling V_HPUX case.


To generate a diff of this commit:
cvs rdiff -r1.80 -r1.81 pkgsrc/devel/ncurses/Makefile
cvs rdiff -r1.6 -r1.7 pkgsrc/devel/ncurses/Makefile.common
cvs rdiff -r1.15 -r1.16 pkgsrc/devel/ncurses/distinfo
cvs rdiff -r1.3 -r1.4 pkgsrc/devel/ncursesw/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.