DragonFly BSD
DragonFly bugs List (threaded) for 2010-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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

From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Mon, 5 Apr 2010 09:45:44 +0900

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?


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]