diff options
| author | Jeff Davis | 2025-12-16 18:35:40 +0000 |
|---|---|---|
| committer | Jeff Davis | 2025-12-16 18:35:40 +0000 |
| commit | 84d5efa7e3ebcf04694d312b0f14ceb35dcdfb8e (patch) | |
| tree | 099e9d29cc9dcf4643e225e99b2a2fba0ddec7fb /src/tools/version_stamp.pl | |
| parent | f1a6e622bd94735c36d72c663813b55c442739b4 (diff) | |
Previously, the API for ltree_strncasecmp() took two inputs but only
one length (that of the smaller input). It truncated the larger input
to that length, but that could break a multibyte sequence.
Change the API to be a check for prefix equality (possibly
case-insensitive) instead, which is all that's needed by the
callers. Also, provide the lengths of both inputs.
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/5f65b85740197ba6249ea507cddf609f84a6188b.camel%40j-davis.com
Backpatch-through: 14
Diffstat (limited to 'src/tools/version_stamp.pl')
0 files changed, 0 insertions, 0 deletions
