aboutsummaryrefslogtreecommitdiff
path: root/src/backend/main/main.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2015-07-08 20:44:21 -0400
committerNoah Misch <noah@leadboat.com>2015-07-08 20:44:25 -0400
commitaaf15ee33a63c582fbb61b67befdd620e85da2ce (patch)
tree1f24f7828c9f7b24e7fe4ff4350e29b15004a034 /src/backend/main/main.c
parent8ed6e70ace8e8d2f0747c16a796a21147ffaf404 (diff)
downloadpostgresql-aaf15ee33a63c582fbb61b67befdd620e85da2ce.tar.gz
postgresql-aaf15ee33a63c582fbb61b67befdd620e85da2ce.zip
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.
Diffstat (limited to 'src/backend/main/main.c')
-rw-r--r--src/backend/main/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/main/main.c b/src/backend/main/main.c
index 2ecadd660cf..4fad6f3dc55 100644
--- a/src/backend/main/main.c
+++ b/src/backend/main/main.c
@@ -149,6 +149,8 @@ main(int argc, char *argv[])
*/
unsetenv("LC_ALL");
+ check_strxfrm_bug();
+
/*
* Catch standard options before doing much else, in particular before we
* insist on not being root.