forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7d72fd9
committed
Avoid null pointer dereference if error result lacks SQLSTATE.
Although error results received from the backend should always havea SQLSTATE field, ones generated by libpq won't, making this codevulnerable to a crash after, say, untimely loss of connection.Noted by Coverity.Oversight in commit403a3d9. Back-patch to 9.5, as that was.1 parent41a033b commit7d72fd9
1 file changed
+8
-6
lines changedLines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
543 | 543 |
| |
544 | 544 |
| |
545 | 545 |
| |
546 |
| - | |
547 |
| - | |
548 |
| - | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
549 | 549 |
| |
550 | 550 |
| |
551 | 551 |
| |
| |||
572 | 572 |
| |
573 | 573 |
| |
574 | 574 |
| |
575 |
| - | |
| 575 | + | |
| 576 | + | |
576 | 577 |
| |
577 | 578 |
| |
578 | 579 |
| |
579 | 580 |
| |
580 |
| - | |
581 |
| - | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
582 | 584 |
| |
583 | 585 |
| |
584 | 586 |
| |
|
0 commit comments
Comments
(0)