forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite16f993
Fix assert in logicalmsg_desc
The assert, introduced by9f1cf97, is intended to check if the prefixis terminated by a \0 byte, but it has two flaws. Firstly, prefix_sizeincludes the \0 byte, so prefix[prefix_size] points to the byte afterthe null byte. Secondly, the check ensures the byte is not equal \0,while it should be checking the opposite.Backpatch-through: 14Discussion:https://postgr.es/m/b99b6101-2f14-3796-3dfa-4a6cd7d4326d@enterprisedb.com1 parent3e995bd commite16f993
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments
Comments
(0)