forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0782050
committed
Catch invalid typlens in a couple of places
Rearrange the logic in record_image_cmp() and record_image_eq() toerror out on unexpected typlens (either not supported there orcompletely invalid due to corruption). Barring corruption, this isnot possible today but it seems more future-proof and robust to fixthis.Reported-by: Peter Geoghegan <pg@bowt.ie>1 parent88d03d7 commit0782050
1 file changed
+26
-21
lines changedLines changed: 26 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1442 | 1442 |
| |
1443 | 1443 |
| |
1444 | 1444 |
| |
1445 |
| - | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
1446 | 1457 |
| |
1447 | 1458 |
| |
1448 | 1459 |
| |
| |||
1465 | 1476 |
| |
1466 | 1477 |
| |
1467 | 1478 |
| |
1468 |
| - | |
1469 |
| - | |
1470 |
| - | |
1471 |
| - | |
1472 |
| - | |
1473 | 1479 |
| |
1474 |
| - | |
1475 |
| - | |
1476 |
| - | |
1477 |
| - | |
1478 |
| - | |
| 1480 | + | |
1479 | 1481 |
| |
1480 | 1482 |
| |
1481 | 1483 |
| |
| |||
1671 | 1673 |
| |
1672 | 1674 |
| |
1673 | 1675 |
| |
1674 |
| - | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
1675 | 1687 |
| |
1676 | 1688 |
| |
1677 | 1689 |
| |
| |||
1700 | 1712 |
| |
1701 | 1713 |
| |
1702 | 1714 |
| |
1703 |
| - | |
1704 |
| - | |
1705 |
| - | |
1706 |
| - | |
1707 | 1715 |
| |
1708 |
| - | |
1709 |
| - | |
1710 |
| - | |
1711 |
| - | |
1712 |
| - | |
| 1716 | + | |
| 1717 | + | |
1713 | 1718 |
| |
1714 | 1719 |
| |
1715 | 1720 |
| |
|
0 commit comments
Comments
(0)