No subject

Unknown Unknown
Thu Jan 19 18:21:44 PST 2012


    char memmem ();
    int
    main ()
    {
        return memmem ();
        ;
        return 0;
    }

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.

So far setting
    NO_MEMMEM = YesPlease
in git's entry for DragonFly in its Makefile does not appear to have solved the
problem.


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account





More information about the Bugs mailing list