pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Relax check for return value from second call of pg_strnxfrm().
3+ messages / 1 participants
[nested] [flat]

* pgsql: Relax check for return value from second call of pg_strnxfrm().
@ 2024-07-30 23:51 Jeff Davis <jdavis@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Jeff Davis @ 2024-07-30 23:51 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Relax check for return value from second call of pg_strnxfrm().
@ 2024-07-30 23:51 Jeff Davis <jdavis@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Jeff Davis @ 2024-07-30 23:51 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/10fdc67f81972a03eee928a3b0ae226a78243fad

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Relax check for return value from second call of pg_strnxfrm().
@ 2024-07-30 23:51 Jeff Davis <jdavis@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Jeff Davis @ 2024-07-30 23:51 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/403cbd21081939563ec79d100a83b168afcf0300

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2024-07-30 23:51 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-07-30 23:51 pgsql: Relax check for return value from second call of pg_strnxfrm(). Jeff Davis <jdavis@postgresql.org>
2024-07-30 23:51 pgsql: Relax check for return value from second call of pg_strnxfrm(). Jeff Davis <jdavis@postgresql.org>
2024-07-30 23:51 pgsql: Relax check for return value from second call of pg_strnxfrm(). Jeff Davis <jdavis@postgresql.org>

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