diff options
author | Tomas Vondra <tomas.vondra@postgresql.org> | 2022-08-16 23:52:10 +0200 |
---|---|---|
committer | Tomas Vondra <tomas.vondra@postgresql.org> | 2022-08-16 23:52:10 +0200 |
commit | c52ad9c4efdb91ce274c65b1acdb350e439c7b2d (patch) | |
tree | 68c78cf4b64421c10da900b918650d340ad50f20 /src/backend/utils/adt/jsonpath_exec.c | |
parent | 40ca9073ff228163b1320122a82e4064da6cf54f (diff) | |
download | postgresql-c52ad9c4efdb91ce274c65b1acdb350e439c7b2d.tar.gz postgresql-c52ad9c4efdb91ce274c65b1acdb350e439c7b2d.zip |
Fix assert in logicalmsg_desc
The assert, introduced by 9f1cf97bb5, is intended to check if the prefix
is terminated by a \0 byte, but it has two flaws. Firstly, prefix_size
includes the \0 byte, so prefix[prefix_size] points to the byte after
the null byte. Secondly, the check ensures the byte is not equal \0,
while it should be checking the opposite.
Backpatch-through: 14
Discussion: https://postgr.es/m/b99b6101-2f14-3796-3dfa-4a6cd7d4326d@enterprisedb.com
Diffstat (limited to 'src/backend/utils/adt/jsonpath_exec.c')
0 files changed, 0 insertions, 0 deletions