Re: BUG #4015: uninitialized value passed as an argument to tm2timetz

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ted Kremenek" <kremenek(at)apple(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4015: uninitialized value passed as an argument to tm2timetz
Date: 2008-03-06 06:10:38
Message-ID: 11454.1204783838@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Ted Kremenek" <kremenek(at)apple(dot)com> writes:
> It appears that there may be a case where the function tm2timetz is called
> with an uninitialized (i.e., undefined) value passed as one of its arguments
> (actually multiple arguments are undefined).

I think you're assuming DateTimeParseError() will return, which it will
not (it always throws ereport(ERROR)). Or have I missed something?

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Ted Kremenek 2008-03-06 08:03:24 Re: BUG #4015: uninitialized value passed as an argument to tm2timetz
Previous Message Ted Kremenek 2008-03-05 22:12:47 BUG #4015: uninitialized value passed as an argument to tm2timetz