Re: Fix overflow in DecodeInterval

From: Joseph Koshakow <koshy44(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Fix overflow in DecodeInterval
Date: 2022-02-13 19:34:34
Message-ID: CAAvxfHdyDCTbuVdHdF0kS=jCawG4ziPSntL9LWgBihRfuc+tpw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Actually found an additional overflow issue in
DecodeInterval. I've updated the patch with the
fix. Specifically it prevents trying to negate a field
if it equals INT_MIN. Let me know if this is best
put into another patch.

- Joe Koshakow

Attachment Content-Type Size
v4-0001-Check-for-overflow-when-decoding-an-interval.patch text/x-patch 14.3 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2022-02-13 20:09:20 Re: Adding CI to our tree
Previous Message Andres Freund 2022-02-13 19:24:13 Re: FailedAssertion("prev_first_lsn < cur_txn->first_lsn", File: "reorderbuffer.c", Line: 1173, ...