| From: | Brent Verner <brent(at)rcfile(dot)org> | 
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
| Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> | 
| Subject: | Re: oid failures on Alpha solved | 
| Date: | 2000-12-31 02:25:35 | 
| Message-ID: | 20001230212535.A2067@rcfile.org | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
On 30 Dec 2000 at 14:24 (-0500), Tom Lane wrote:
| > Brent Verner <brent(at)rcfile(dot)org> writes:
| >> formatting '-1040' with '%u'
| >> snprintf = 18446744073709550576
| >> sprintf  = 4294966256
| 
| >> oidout() is where the offending call originates, FWIW.
| >> snprintf(result, 12, "%u", o);
| 
| > Hm.  This is clearly a bug in snprintf.
| 
| OK, I was able to duplicate this failure on Debian Alpha after forcing
| our snprintf emulation to be used instead of the system's.  Problem is
| sloppy signed-vs-unsigned casting in snprintf.c.  I've committed a fix.
| Another day, another bug...
indeed. the most recent snprintf.c works as expected.
thank you.
  brent
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alex Pilosov | 2000-12-31 03:17:53 | Re: GNU readline and BSD license | 
| Previous Message | Peter Bierman | 2000-12-30 23:35:37 | Re: GNU readline and BSD license |