Re: UW 713UP3 patch - Mailing list pgsql-patches

From Larry Rosenman
Subject Re: UW 713UP3 patch
Date
Msg-id 472710000.1067900978@lerlaptop-red.iadfw.net
Whole thread Raw
In response to Re: UW 713UP3 patch  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: UW 713UP3 patch
List pgsql-patches

--On Monday, November 03, 2003 23:24:19 +0100 Peter Eisentraut
<peter_e@gmx.net> wrote:

> Larry Rosenman writes:
>
>> > I'll try and write the patch as you suggest.
>> Here's a patch as you suggested:
>
> Isn't there a way to write a test that actually triggers the bug we're
> trying to work around?
Here is what the SCO Folks said when I reported this back in August:

You can reduce the example down to

    extern char *strcpy(char *, const char *);

    static void f(char *p, int n){
            strcpy(p+n,"");
    }
    void g(void){
            f(0, 0);
    }

compile with cc -O -Kinline

that will trip it.

I still think that using the __SCO_VERSION__ preprocessor symbol is the
better idea.



>
> --
> Peter Eisentraut   peter_e@gmx.net



--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Attachment

pgsql-patches by date:

Previous
From: Larry Rosenman
Date:
Subject: Re: UW 713UP3 patch
Next
From: Tom Lane
Date:
Subject: Re: equal() perf tweak