summaryrefslogtreecommitdiff
path: root/src/include/utils
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:21 -0400
commitbe8b06c364db315258fb074e9bfbf5db04ab2c5f (patch)
tree0d206340e0d5572d34602aa39ef05c097e531c80 /src/include/utils
parentb28244abe58382be980d9b9577276c0700dd2cbc (diff)
downloadpostgresql-be8b06c364db315258fb074e9bfbf5db04ab2c5f.tar.gz
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/include/utils')
-rw-r--r--src/include/utils/pg_locale.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/pg_locale.h b/src/include/utils/pg_locale.h
index 3b5613852b..8e91033a41 100644
--- a/src/include/utils/pg_locale.h
+++ b/src/include/utils/pg_locale.h
@@ -44,6 +44,7 @@ extern void assign_locale_time(const char *newval, void *extra);
extern bool check_locale(int category, const char *locale, char **canonname);
extern char *pg_perm_setlocale(int category, const char *locale);
+extern void check_strxfrm_bug(void);
extern bool lc_collate_is_c(Oid collation);
extern bool lc_ctype_is_c(Oid collation);