pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: t.larionov@postgrespro.ru
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16953: OOB access while converting "interval" to char
Date: Mon, 12 Apr 2021 12:04:23 +0900
Message-ID: <YHO4t+MnSNPcMPAU@paquier.xyz> (raw)
In-Reply-To: <YHAza+N74LHygGnB@paquier.xyz>
References: <16953-f255a18f8c51f1d5@postgresql.org>
	<20210407120856.3rjxxnnzzxn74vyv@nol>
	<YG7YTjuZXylrjGAv@paquier.xyz>
	<20210408110403.wr3d552xilqsx4us@nol>
	<YG7q8YcvFcXCAbAH@paquier.xyz>
	<20210409104246.vkeef6rbyevq46f3@nol>
	<YHAza+N74LHygGnB@paquier.xyz>

On Fri, Apr 09, 2021 at 07:58:51PM +0900, Michael Paquier wrote:
> Yep.  The regression tests show what I would expect.  I'll check in
> details later.

I have spent some time on that today and applied this patch down to
9.6, after adding more comments and simplifying a bit the calculation
method used.  Instead of using the "mon" variable to store an
intermediate result, I have simplified things so as this only uses
tm->tm_mon, and "mon" for the position in the roman-numeral array is
adjusted only once.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (9+ messages)  latest in thread

Message-ID: <YHO4t+MnSNPcMPAU@paquier.xyz>
Permalink:  ../YHO4t+MnSNPcMPAU@paquier.xyz/
Also on:    postgresql.org/message-id/YHO4t+MnSNPcMPAU@paquier.xyz

 · 

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: michael@paquier.xyz, rjuju123@gmail.com, t.larionov@postgrespro.ru, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16953: OOB access while converting "interval" to char
  In-Reply-To: <YHO4t+MnSNPcMPAU@paquier.xyz>

* 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