forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7eb16ab
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 parent01a0ca1 commit7eb16ab
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2367 | 2367 |
| |
2368 | 2368 |
| |
2369 | 2369 |
| |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
2370 | 2373 |
| |
2371 | 2374 |
| |
2372 | 2375 |
| |
|
0 commit comments
Comments
(0)