[issue1711] memmem() in string.h should be more or less VISIBLE on x86_64?

YONETANI Tomokazu qhwt+dfly at les.ath.cx
Sun Apr 4 17:46:47 PDT 2010


On Wed, Mar 31, 2010 at 07:55:45PM +0000, David Shao (via DragonFly issue tracker) wrote:
> Suppose on x86_64 some package, say scmgit-base, detects the existence of
> memmem() yet because it too  does not define any *VISIBLE uses an implicit
> definition of memmem(), as is indicated in the build messages:
					:
> Then the return value of the actual memmem() that should be (void *) I believe
> suddenly becomes an int, so that what used to be a valid pointer after the
> return is now possibly not a valid pointer on x86_64 if it is truncated and then
> sign extended to a negative 64-bit number.  For example, using
> 
>     git diff HEAD^ HEAD
> 
> produces segmentation fault errors.

This particular issue in git should have been solved in pkgsrc-HEAD,
can you try updating the devel/scmgit-base directory and re-install it?

Cheers.





More information about the Bugs mailing list