forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc7c2cc6
committed
Fix out-of-memory handling in ecpglib.
ecpg_build_params() would crash on a null pointer dereference ifrealloc() failed, due to updating the persistent "stmt" structtoo aggressively. (Even without the crash, this would've leakedthe old storage that we were trying to realloc.)Per Coverity. This seems to have been broken in commit0cc0507,so back-patch into v12.1 parentac2dcca commitc7c2cc6
1 file changed
+24
-13
lines changedLines changed: 24 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1502 | 1502 |
| |
1503 | 1503 |
| |
1504 | 1504 |
| |
1505 |
| - | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
1506 | 1527 |
| |
1507 | 1528 |
| |
1508 | 1529 |
| |
1509 | 1530 |
| |
1510 | 1531 |
| |
1511 |
| - | |
1512 | 1532 |
| |
1513 |
| - | |
1514 |
| - | |
1515 |
| - | |
1516 |
| - | |
1517 |
| - | |
| 1533 | + | |
| 1534 | + | |
1518 | 1535 |
| |
1519 |
| - | |
1520 |
| - | |
1521 |
| - | |
1522 |
| - | |
1523 |
| - | |
1524 |
| - | |
1525 | 1536 |
| |
1526 | 1537 |
| |
1527 | 1538 |
| |
|
0 commit comments
Comments
(0)