diff options
author | Noah Misch <noah@leadboat.com> | 2015-07-08 20:44:21 -0400 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2015-07-08 20:44:25 -0400 |
commit | aaf15ee33a63c582fbb61b67befdd620e85da2ce (patch) | |
tree | 1f24f7828c9f7b24e7fe4ff4350e29b15004a034 /src/backend/utils/init/postinit.c | |
parent | 8ed6e70ace8e8d2f0747c16a796a21147ffaf404 (diff) | |
download | postgresql-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/utils/init/postinit.c')
-rw-r--r-- | src/backend/utils/init/postinit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index 063b0653b49..c172d3a30e9 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -378,6 +378,8 @@ CheckMyDatabase(const char *name, bool am_superuser) SetConfigOption("lc_collate", collate, PGC_INTERNAL, PGC_S_OVERRIDE); SetConfigOption("lc_ctype", ctype, PGC_INTERNAL, PGC_S_OVERRIDE); + check_strxfrm_bug(); + ReleaseSysCache(tup); } |