Re: [HACKERS] write past chunk end in ExprContext / to_char

2007-06-28 Thread Bruce Momjian
Tom Lane wrote: > Patrick Welche <[EMAIL PROTECTED]> writes: > > With today's CVS code (originally noticed with 8.2beta3), on a PC where > > INT_MAX=0x7FFF=2147483647 > > > postgres=# select to_char(2147483648,'999,999,999'); > > WARNING: detected write past chunk end in ExprContext 0x845509c

Re: [HACKERS] write past chunk end in ExprContext / to_char

2007-06-28 Thread Tom Lane
imad <[EMAIL PROTECTED]> writes: > This is the problematic part in formatting.c, function "dch_time". > intsiz = strlen(tmtcTzn(tmtc)); > > if (arg == DCH_TZ) > strcpy(inout, tmtcTzn(tmtc)); > else > { >

Re: [HACKERS] write past chunk end in ExprContext / to_char

2007-06-28 Thread imad
This is the problematic part in formatting.c, function "dch_time". int siz = strlen(tmtcTzn(tmtc)); if (arg == DCH_TZ) strcpy(inout, tmtcTzn(tmtc));

Re: [HACKERS] write past chunk end in ExprContext / to_char

2007-06-28 Thread Tom Lane
Patrick Welche <[EMAIL PROTECTED]> writes: > With today's CVS code (originally noticed with 8.2beta3), on a PC where > INT_MAX=0x7FFF=2147483647 > postgres=# select to_char(2147483648,'999,999,999'); > WARNING: detected write past chunk end in ExprContext 0x845509c > WARNING: detected write

Re: [HACKERS] write past chunk end in ExprContext / to_char

2007-06-28 Thread Alvaro Herrera
Patrick Welche wrote: > With today's CVS code (originally noticed with 8.2beta3), on a PC where > INT_MAX=0x7FFF=2147483647 > > postgres=# select to_char(1234567890123,'999,999,999,999'); > WARNING: detected write past chunk end in ExprContext 0x845509c > WARNING: detected write past chunk e

[HACKERS] write past chunk end in ExprContext / to_char

2007-06-28 Thread Patrick Welche
With today's CVS code (originally noticed with 8.2beta3), on a PC where INT_MAX=0x7FFF=2147483647 postgres=# select version(); version