Subject: CVS commit: pkgsrc/devel/gtexinfo
To: None <pkgsrc-changes@NetBSD.org>
From: Roland Illig <rillig@netbsd.org>
List: pkgsrc-changes
Date: 01/08/2007 08:21:48
Module Name:	pkgsrc
Committed By:	rillig
Date:		Mon Jan  8 08:21:48 UTC 2007

Modified Files:
	pkgsrc/devel/gtexinfo: distinfo
	pkgsrc/devel/gtexinfo/patches: patch-al

Log Message:
Fixed the "fix" for CVE-2006-4810, since it introduced these compiler
warnings.

===> GCC
texindex.c: In function `readline':
texindex.c:848: warning: assignment makes pointer from integer without a cast

===> MIPSpro
cc-1515 cc: ERROR File = texindex.c, Line = 848
  A value of type "long" cannot be assigned to an entity of type "char *".

            end = buffer - linebuffer->buffer;

Well, if the compilers were more intelligent, they could have seen that
(buffer == linebuffer->buffer) was an invariant and that the resulting
difference was therefore always zero, and zero can be converted into any
pointer type. ;)


To generate a diff of this commit:
cvs rdiff -r1.25 -r1.26 pkgsrc/devel/gtexinfo/distinfo
cvs rdiff -r1.3 -r1.4 pkgsrc/devel/gtexinfo/patches/patch-al

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