forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc846f7c
committed
Fix several datatype input functions that were allowing unused bytes in their
results to contain uninitialized, unpredictable values. While this was okayas far as the datatypes themselves were concerned, it's a problem for theparser because occurrences of the "same" literal might not be recognized asequal by datumIsEqual (and hence not by equal()). It seems sufficient to fixthis in the input functions since the only critical use of equal() is in theparser's comparisons of ORDER BY and DISTINCT expressions.Per a trouble report from Marc Cousin.Patch all the way back. Interestingly, array_in did not have the bug before8.2, which may explain why the issue went unnoticed for so long.1 parent00b1827 commitc846f7c
File tree
4 files changed
+15
-16
lines changed- contrib/ltree
- src/backend/utils/adt
4 files changed
+15
-16
lines changedLines changed: 6 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| |||
118 | 118 |
| |
119 | 119 |
| |
120 | 120 |
| |
121 |
| - | |
| 121 | + | |
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
| |||
208 | 208 |
| |
209 | 209 |
| |
210 | 210 |
| |
211 |
| - | |
212 |
| - | |
| 211 | + | |
213 | 212 |
| |
214 | 213 |
| |
215 | 214 |
| |
216 | 215 |
| |
217 | 216 |
| |
218 | 217 |
| |
219 | 218 |
| |
220 |
| - | |
221 |
| - | |
| 219 | + | |
222 | 220 |
| |
223 | 221 |
| |
224 | 222 |
| |
225 | 223 |
| |
226 | 224 |
| |
227 | 225 |
| |
228 |
| - | |
229 |
| - | |
| 226 | + | |
230 | 227 |
| |
231 | 228 |
| |
232 | 229 |
| |
| |||
448 | 445 |
| |
449 | 446 |
| |
450 | 447 |
| |
451 |
| - | |
| 448 | + | |
452 | 449 |
| |
453 | 450 |
| |
454 | 451 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
319 | 319 |
| |
320 | 320 |
| |
321 | 321 |
| |
322 |
| - | |
| 322 | + | |
323 | 323 |
| |
324 | 324 |
| |
325 | 325 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1425 | 1425 |
| |
1426 | 1426 |
| |
1427 | 1427 |
| |
| 1428 | + | |
| 1429 | + | |
1428 | 1430 |
| |
1429 | 1431 |
| |
1430 | 1432 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
223 | 223 |
| |
224 | 224 |
| |
225 | 225 |
| |
226 |
| - | |
| 226 | + | |
227 | 227 |
| |
228 | 228 |
| |
229 | 229 |
| |
| |||
247 | 247 |
| |
248 | 248 |
| |
249 | 249 |
| |
250 |
| - | |
| 250 | + | |
251 | 251 |
| |
252 | 252 |
| |
253 | 253 |
| |
| |||
304 | 304 |
| |
305 | 305 |
| |
306 | 306 |
| |
307 |
| - | |
| 307 | + | |
308 | 308 |
| |
309 | 309 |
| |
310 | 310 |
| |
|
0 commit comments
Comments
(0)