forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita8c3f16
committed
Remove typmod checking from the recent security-related patches. It turns
out that ExecEvalVar and friends don't necessarily have access to a tupledescriptor with correct typmod: it definitely can contain -1, and possiblymight contain other values that are different from the Var's value.Arguably this should be cleaned up someday, but it's not a simple change,and in any case typmod discrepancies don't pose a security hazard.Per reports from numerous people :-(I'm not entirely sure whether the failure can occur in 8.0 --- the simpletest cases reported so far don't trigger it there. But back-patch thechange all the way anyway.1 parent869585c commita8c3f16
2 files changed
+11
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
491 | | - | |
492 | | - | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
493 | 496 | | |
494 | 497 | | |
495 | 498 | | |
| |||
505 | 508 | | |
506 | 509 | | |
507 | 510 | | |
508 | | - | |
509 | | - | |
510 | | - | |
| 511 | + | |
511 | 512 | | |
512 | 513 | | |
513 | 514 | | |
| |||
3362 | 3363 | | |
3363 | 3364 | | |
3364 | 3365 | | |
3365 | | - | |
3366 | | - | |
3367 | | - | |
| 3366 | + | |
| 3367 | + | |
3368 | 3368 | | |
3369 | 3369 | | |
3370 | 3370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
| 635 | + | |
639 | 636 | | |
640 | 637 | | |
641 | 638 | | |
| |||
0 commit comments
Comments
(0)