| From: | Jeff Davis <pgsql(at)j-davis(dot)com> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Add a guard against uninitialized default locale |
| Date: | 2026-04-24 22:44:23 |
| Message-ID: | d080287d8d2d14c246c86be2e9eb611fb6b27b11.camel@j-davis.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Not known to be reachable after dbf217c1c7, but defend against similar
issues in the future. For instance, an extension might encounter the
problem by calling pg_newlocale_from_collation(DEFAULT_COLLATION_OID)
from _PG_init(), and end up with a NULL pointer dereference.
Backport through 17, though patch is different in 17 (also attached).
Regards,
Jeff Davis
| Attachment | Content-Type | Size |
|---|---|---|
| v1.19-0001-Guard-against-uninitialized-default-locale.patch | text/x-patch | 958 bytes |
| v1.17-0001-Guard-against-uninitialized-default-locale.patch | text/x-patch | 1.5 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jim Jones | 2026-04-24 23:01:21 | Re: Fix bug with accessing to temporary tables of other sessions |
| Previous Message | David G. Johnston | 2026-04-24 22:30:51 | Re: Fix bug with accessing to temporary tables of other sessions |