1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-23 14:01:44 +03:00
Files
postgres/src/backend
Tomas Vondra be6aadf07d 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
2022-08-17 00:13:42 +02:00
..
2022-08-17 00:13:42 +02:00
2022-07-11 16:01:22 +12:00
2022-08-08 12:39:52 +02:00
2022-01-07 19:04:57 -05:00
2022-07-12 16:30:36 -04:00