Re: BUG #4015: uninitialized value passed as an argument to tm2timetz - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4015: uninitialized value passed as an argument to tm2timetz
Date
Msg-id 11454.1204783838@sss.pgh.pa.us
Whole thread Raw
In response to BUG #4015: uninitialized value passed as an argument to tm2timetz  ("Ted Kremenek" <kremenek@apple.com>)
Responses Re: BUG #4015: uninitialized value passed as an argument to tm2timetz
List pgsql-bugs
"Ted Kremenek" <kremenek@apple.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

pgsql-bugs by date:

Previous
From: "Ted Kremenek"
Date:
Subject: BUG #4015: uninitialized value passed as an argument to tm2timetz
Next
From: Ted Kremenek
Date:
Subject: Re: BUG #4015: uninitialized value passed as an argument to tm2timetz