]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add checks for valid multibyte character length in UtfToLocal, LocalToUtf.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 12 Dec 2021 20:58:57 +0000 (15:58 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 12 Dec 2021 20:58:57 +0000 (15:58 -0500)
commit404d987646e395b893fbaae17525e1ce45c75c80
tree093bfb346c34c65f9b2429388cf4c5a32aaca185
parentf24374bce687a2279f9befd3a1da72bd9ca7d1bd
Add checks for valid multibyte character length in UtfToLocal, LocalToUtf.

This back-patches commit d9f37e666 into out-of-support branches,
pursuant to newly-established project policy.  The point is to
suppress "uninitialized variable" warnings so that people building
these branches needn't expend brain cells verifying that it's safe
to ignore the warnings.

Discussion: https://postgr.es/m/d0316012-ece7-7b7e-2d36-9c38cb77cb3b@enterprisedb.com
src/backend/utils/mb/conv.c