Re: UW 713UP3 patch

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: UW 713UP3 patch
Date: 2003-11-03 23:09:38
Message-ID: 472710000.1067900978@lerlaptop-red.iadfw.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

--On Monday, November 03, 2003 23:24:19 +0100 Peter Eisentraut
<peter_e(at)gmx(dot)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(at)gmx(dot)net

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

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2003-11-03 23:19:29 Re: equal() perf tweak
Previous Message Larry Rosenman 2003-11-03 22:27:13 Re: UW 713UP3 patch