- Notifications
You must be signed in to change notification settings - Fork28
Commit44f1fc8
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 parent9c679a0 commit44f1fc8
1 file changed
+24
-13
lines changedLines changed: 24 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1499 | 1499 |
| |
1500 | 1500 |
| |
1501 | 1501 |
| |
1502 |
| - | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
1503 | 1524 |
| |
1504 | 1525 |
| |
1505 | 1526 |
| |
1506 | 1527 |
| |
1507 | 1528 |
| |
1508 |
| - | |
1509 | 1529 |
| |
1510 |
| - | |
1511 |
| - | |
1512 |
| - | |
1513 |
| - | |
1514 |
| - | |
| 1530 | + | |
| 1531 | + | |
1515 | 1532 |
| |
1516 |
| - | |
1517 |
| - | |
1518 |
| - | |
1519 |
| - | |
1520 |
| - | |
1521 |
| - | |
1522 | 1533 |
| |
1523 | 1534 |
| |
1524 | 1535 |
| |
|
0 commit comments
Comments
(0)