aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeFunctionscan.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-01-19 19:15:15 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2020-01-19 19:15:15 -0500
commitc7c2cc67007741338a36a8d7aa86e23600aa5e18 (patch)
tree0ed354e2eb4154be3b0d4dbddfbe1a0beb5a16cb /src/backend/executor/nodeFunctionscan.c
parentac2dcca5dfe62177fd871a8f4f71430a1c92382c (diff)
downloadpostgresql-c7c2cc67007741338a36a8d7aa86e23600aa5e18.tar.gz
postgresql-c7c2cc67007741338a36a8d7aa86e23600aa5e18.zip
Fix out-of-memory handling in ecpglib.
ecpg_build_params() would crash on a null pointer dereference if realloc() failed, due to updating the persistent "stmt" struct too aggressively. (Even without the crash, this would've leaked the old storage that we were trying to realloc.) Per Coverity. This seems to have been broken in commit 0cc050794, so back-patch into v12.
Diffstat (limited to 'src/backend/executor/nodeFunctionscan.c')
0 files changed, 0 insertions, 0 deletions