- Notifications
You must be signed in to change notification settings - Fork5
Commit51b5008
committed
Fix assorted small bugs in ThrowErrorData().
Copy the palloc'd strings into the correct context, ie ErrorContextnot wherever the source ErrorData is. This would be a large bug,except that it appears that all catchers of thrown errors do eitherEmitErrorReport or CopyErrorData before doing anything that wouldcause transient memory contexts to be cleaned up. Still, it's wrongand it will bite somebody someday.Fix failure to copy cursorpos and internalpos.Utter the appropriate incantations involving recursion_depth, so thatwe'll behave sanely if we get an error inside pstrdup. (In general,the body of this function ought to act like, eg, errdetail().)Per code reading induced by Jakob Egger's report.1 parent8c90704 commit51b5008
1 file changed
+14
-5
lines changedLines changed: 14 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1585 | 1585 |
| |
1586 | 1586 |
| |
1587 | 1587 |
| |
1588 |
| - | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
1589 | 1592 |
| |
1590 | 1593 |
| |
1591 | 1594 |
| |
| |||
1597 | 1600 |
| |
1598 | 1601 |
| |
1599 | 1602 |
| |
1600 |
| - | |
| 1603 | + | |
1601 | 1604 |
| |
1602 | 1605 |
| |
1603 |
| - | |
| 1606 | + | |
| 1607 | + | |
1604 | 1608 |
| |
1605 |
| - | |
1606 |
| - | |
| 1609 | + | |
| 1610 | + | |
1607 | 1611 |
| |
1608 | 1612 |
| |
1609 | 1613 |
| |
| |||
1615 | 1619 |
| |
1616 | 1620 |
| |
1617 | 1621 |
| |
| 1622 | + | |
1618 | 1623 |
| |
1619 | 1624 |
| |
1620 | 1625 |
| |
| |||
1625 | 1630 |
| |
1626 | 1631 |
| |
1627 | 1632 |
| |
| 1633 | + | |
| 1634 | + | |
1628 | 1635 |
| |
1629 | 1636 |
| |
1630 | 1637 |
| |
1631 | 1638 |
| |
| 1639 | + | |
1632 | 1640 |
| |
| 1641 | + | |
1633 | 1642 |
| |
1634 | 1643 |
| |
1635 | 1644 |
| |
|
0 commit comments
Comments
(0)