forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd5f767c
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 parent70dc7ad commitd5f767c
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2407 | 2407 | | |
2408 | 2408 | | |
2409 | 2409 | | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
2410 | 2413 | | |
2411 | 2414 | | |
2412 | 2415 | | |
| |||
0 commit comments
Comments
(0)