Re: BUG #18614: [ECPG] out of bound in DecodeDateTime

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Bruce Momjian <bruce@momjian.us>
Cc: p.nekrasov@fobos-nt.ru, pgsql-bugs@lists.postgresql.org
Date: 2024-10-22T23:37:35Z
Lists: pgsql-bugs
On Tue, Oct 22, 2024 at 02:53:50PM +0900, Michael Paquier wrote:
> And here is what I had in mind, checking the error code on top of the
> output.  The output is really optional, but that maps with 0 with the
> offset applied, so I've just kept it.

I had some time this morning, so I have looked at it again, kept the
patch as-is, and backpatched all the way down (with proper authorship
of course).
--
Michael

Commits

  1. ecpg: Fix out-of-bound read in DecodeDateTime()