Back-patch pg_encoding_verifymbstr()/pg_encoding_verifymbchar() to v13.
authorAndres Freund <andres@anarazel.de>
Mon, 10 Feb 2025 15:03:40 +0000 (10:03 -0500)
committerAndres Freund <andres@anarazel.de>
Mon, 10 Feb 2025 15:03:40 +0000 (10:03 -0500)
commit00f1a1f665f078f5abadbf8baddc5c187fba80f8
tree58c6aa8860903f1b9e64e9baaf7198b94a1e88a3
parentbf085f6d45e2300439d85bae384a7f90844d3deb
Back-patch pg_encoding_verifymbstr()/pg_encoding_verifymbchar() to v13.

A security fix will need those functions, so back-patch the v14+ functions to
v13.

When commit b80e10638e36b9d2f0b39170c613837af2ca2aac introduced the v14+
implementation of pg_encoding_verifymbstr(), it added a callback to each
pg_wchar_table entry.  For simplicity and ABI stability, this instead
implements the function in terms of the existing per-character callback.

Author: Noah Misch <noah@leadboat.com>
Author: Andres Freund <andres@anarazel.de>
Security: CVE-2025-1094
src/common/wchar.c
src/include/mb/pg_wchar.h