forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc26d46f
committed
Fix corner-case coredump in _SPI_error_callback().
I noticed that _SPI_execute_plan initially sets spierrcontext.arg = NULL,and only fills it in some time later. If an error were to happen inbetween, _SPI_error_callback would try to dereference the null pointer.This is unlikely --- there's not much between those points exceptpush-snapshot calls --- but it's clearly not impossible. Tweak thecallback to do nothing if the pointer isn't set yet.It's been like this for awhile, so back-patch to all supported branches.1 parent055532b commitc26d46f
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2450 | 2450 |
| |
2451 | 2451 |
| |
2452 | 2452 |
| |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
2453 | 2456 |
| |
2454 | 2457 |
| |
2455 | 2458 |
| |
|
0 commit comments
Comments
(0)