pgsql: Revoke support for strxfrm() that write past the specified array - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Revoke support for strxfrm() that write past the specified array
Date
Msg-id E1ZCzyp-0008Qs-6m@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Revoke support for strxfrm() that write past the specified array length.

This formalizes a decision implicit in commit
4ea51cdfe85ceef8afabceb03c446574daa0ac23 and adds clean detection of
affected systems.  Vendor updates are available for each such known bug.
Back-patch to 9.5, where the aforementioned commit first appeared.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/be8b06c364db315258fb074e9bfbf5db04ab2c5f

Modified Files
--------------
src/backend/main/main.c           |    2 ++
src/backend/utils/adt/pg_locale.c |   58 +++++++++++++++++++++++++++++++++++++
src/backend/utils/adt/selfuncs.c  |   17 +++++------
src/backend/utils/init/postinit.c |    2 ++
src/include/utils/pg_locale.h     |    1 +
5 files changed, 70 insertions(+), 10 deletions(-)


pgsql-committers by date:

Previous
From: Noah Misch
Date:
Subject: pgsql: Fix null pointer dereference in "\c" psql command.
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Replace our hacked version of ax_pthread.m4 with latest upstream