Revoke support for strxfrm() that write past the specified array length.
Noah Misch <noah@leadboat.com>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/main/main.c | modified | +2 −0 |
| src/backend/utils/adt/pg_locale.c | modified | +58 −0 |
| src/backend/utils/adt/selfuncs.c | modified | +7 −10 |
| src/backend/utils/init/postinit.c | modified | +2 −0 |
| src/include/utils/pg_locale.h | modified | +1 −0 |