pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: exclusion@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18585: Date/time conversion functions are not protected against integer overflow
Date: Sat, 17 Aug 2024 12:45:32 -0400
Message-ID: <964774.1723913132@sss.pgh.pa.us> (raw)
In-Reply-To: <18585-db646741dd649abd@postgresql.org>
References: <18585-db646741dd649abd@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> The date/time conversion functions do_to_timestamp(), DCH_from_char(),
> ... lack reliable checks for integer overflow in the input components.

It's pretty hard to get excited about that, given that the overflow
limits are so many orders of magnitude beyond the useful input range.
There are plenty of garbage-in-garbage-out scenarios associated with
(mis)use of the to_xxx functions, and this feels like just another one.

If anybody does feel excited about the topic, I'm not going to stand
in their way ... but I'm not excited.

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <964774.1723913132@sss.pgh.pa.us>
Permalink:  ../964774.1723913132@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/964774.1723913132@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18585: Date/time conversion functions are not protected against integer overflow
  In-Reply-To: <964774.1723913132@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox