Commit 888f5cd
committed
Fix skipping over 4B varlena padding bytes
4B varlenas can start with NUL bytes on big endian, so the old coding
would eat too many bytes. Instead, handle the 1B cases first and then
compute the correct number of padding bytes instead of looking at the
byte values.
Author: Christoph Berg <[email protected]>1 parent 38932c5 commit 888f5cd
1 file changed
+5
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1078 | 1078 | | |
1079 | 1079 | | |
1080 | 1080 | | |
1081 | | - | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
1092 | 1081 | | |
1093 | 1082 | | |
1094 | 1083 | | |
| |||
1153 | 1142 | | |
1154 | 1143 | | |
1155 | 1144 | | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
1156 | 1150 | | |
1157 | 1151 | | |
1158 | 1152 | | |
| |||
0 commit comments