pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Further reduce dependence on -fwrapv semantics in jsonb.
Date: Fri, 16 Aug 2024 20:07:15 +0000
Message-ID: <E1sf3EB-0001jj-OZ@gemulon.postgresql.org> (raw)

Further reduce dependence on -fwrapv semantics in jsonb.

Commit 108d2adb9e missed updating a few places in the jsonb code
that rely on signed integer wrapping for correctness.  These can
also be fixed by using pg_abs_s32() to negate a signed integer
(that is known to be negative) for comparison with an unsigned
integer.

Reported-by: Alexander Lakhin
Discussion: https://postgr.es/m/bfff906f-300d-81ea-83b7-f2c93845e7f2%40gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1d80d6b50e6401828fc445151375f9bde3f99ac6

Modified Files
--------------
src/backend/utils/adt/jsonfuncs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



Message-ID: <E1sf3EB-0001jj-OZ@gemulon.postgresql.org>
Permalink:  ../E1sf3EB-0001jj-OZ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sf3EB-0001jj-OZ@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Further reduce dependence on -fwrapv semantics in jsonb.
  In-Reply-To: <E1sf3EB-0001jj-OZ@gemulon.postgresql.org>

* 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