Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Strange interval arithmetic

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:
Lists: pgsql-hackerspgsql-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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group