From:
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To:
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc:
Michael Fuhr <mike(at)fuhr(dot)org>,
Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>,
PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject:
Re: [HACKERS] Strange interval arithmetic
Date:
2005-12-01 20:49:36
Message-ID:
16909.1133470176@sss.pgh.pa.us (view raw or flat )
Thread:
2005-11-27 15:15:04 from Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
2005-11-27 15:45:18 from Michael Fuhr <mike(at)fuhr(dot)org>
2005-11-27 18:27:54 from Michael Fuhr <mike(at)fuhr(dot)org>
2005-11-30 16:50:56 from Michael Fuhr <mike(at)fuhr(dot)org>
2005-11-30 17:37:40 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2005-11-30 18:28:07 from Michael Fuhr <mike(at)fuhr(dot)org>
2005-11-30 19:01:46 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2005-11-30 21:50:18 from Michael Fuhr <mike(at)fuhr(dot)org>
2005-11-30 22:06:42 from Alvaro Herrera <alvherre(at)commandprompt(dot)com>
2005-11-30 22:18:23 from Michael Fuhr <mike(at)fuhr(dot)org>
2005-11-30 22:23:23 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2005-11-30 22:53:20 from Michael Fuhr <mike(at)fuhr(dot)org>
2005-12-01 18:16:42 from Greg Stark <gsstark(at)mit(dot)edu>
2005-12-01 20:31:41 from Greg Stark <gsstark(at)mit(dot)edu>
2005-12-01 20:43:05 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2005-12-01 20:45:38 from Michael Fuhr <mike(at)fuhr(dot)org>
2005-12-01 18:18:16 from Greg Stark <gsstark(at)mit(dot)edu>
2005-11-30 22:20:54 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2005-11-30 22:39:16 from Michael Fuhr <mike(at)fuhr(dot)org>
2005-11-30 22:49:53 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2005-11-30 22:57:42 from Michael Fuhr <mike(at)fuhr(dot)org>
2005-11-30 23:45:09 from Michael Fuhr <mike(at)fuhr(dot)org>
2005-11-30 23:00:07 from Andrew Dunstan <andrew(at)dunslane(dot)net>
2005-11-30 23:15:33 from Michael Fuhr <mike(at)fuhr(dot)org>
2005-12-01 20:37:22 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2005-12-01 20:49:36 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2005-12-01 20:50:06 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Lists:
pgsql-hackers pgsql-patches
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Here is the patch I was working on. It does us a separate libpq
> strtol() function, but I question whether it is worth it, or if it is
> meaningful when used by FRONTEND applications. Anyway, I am just
> throwing it out if it gives others ideas.
I did look through all the other calls to strtol/strtoul, and concluded
that the ones in datetime.c were the only undefended ones that really
needed a check.
regards, tom lane
In response to
Responses
pgsql-hackers by date
Next :From: Bruce MomjianDate: 2005-12-01 20:50:06
Subject : Re: [HACKERS] Strange interval arithmetic
Previous :From : Michael FuhrDate : 2005-12-01 20:45:38
Subject : Re: Strange interval arithmetic
pgsql-patches by date
Next :From: Bruce MomjianDate: 2005-12-01 20:50:06
Subject : Re: [HACKERS] Strange interval arithmetic
Previous :From : Magnus HaganderDate : 2005-12-01 20:49:06
Subject : Re: Check for integer overflow in datetime functions