]> 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:59:00 +0000 (15:59 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 12 Dec 2021 20:59:00 +0000 (15:59 -0500)
commit70c64135d0a1715291b4a488df7377bf87207f8c
treeab28f7c7b41c37e568047ae76dfe6add33b1f85b
parentfed9cf2cb9ef4cdc3fe8b09dc2eb19e82fe1cc8b
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