pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Relax check for return value from second call of pg_strnxfrm().
Date: Tue, 30 Jul 2024 23:51:38 +0000
Message-ID: <E1sYwd0-001xCy-Ql@gemulon.postgresql.org> (raw)

Relax check for return value from second call of pg_strnxfrm().

strxfrm() is not guaranteed to return the exact number of bytes needed
to store the result; it may return a higher value.

Discussion: https://postgr.es/m/32f85d88d1f64395abfe5a10dd97a62a4d3474ce.camel@j-davis.com
Reviewed-by: Heikki Linnakangas
Backpatch-through: 16

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/679c5084cf210c6e958276b657039e8ba0c077c0

Modified Files
--------------
src/backend/access/hash/hashfunc.c |  8 ++++++--
src/backend/utils/adt/pg_locale.c  | 12 ++++++------
src/backend/utils/adt/varchar.c    |  8 ++++++--
3 files changed, 18 insertions(+), 10 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1sYwd0-001xCy-Ql@gemulon.postgresql.org>
Permalink:  ../E1sYwd0-001xCy-Ql@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sYwd0-001xCy-Ql@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: jdavis@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Relax check for return value from second call of pg_strnxfrm().
  In-Reply-To: <E1sYwd0-001xCy-Ql@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