aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2023-12-20 22:37:28 +0100
committerDaniel Gustafsson <dgustafsson@postgresql.org>2023-12-20 22:37:28 +0100
commit5b5db413d26ff49e9fd6506258a838ba0a9ea151 (patch)
tree956e1a1a039836b5458851a7e2965bcd208e9542 /src/backend/executor/nodeModifyTable.c
parent94415b04ed0d1f3334c413924e367b25df57f2fd (diff)
downloadpostgresql-5b5db413d26ff49e9fd6506258a838ba0a9ea151.tar.gz
postgresql-5b5db413d26ff49e9fd6506258a838ba0a9ea151.zip
Fix unchecked return value from strdup
The pg_dump compression was using strdup() instead of pg_strdup() and failed to check the returned pointer for out-of-memory before dereferencing it. Fix by using pg_strdup() instead which probably was the intention here in the original patch. Backpatch to v16 where pg_dump compression was introduced. Reviewed-by: Tristan Partin <tristan@neon.tech> Reviewed-by: Nathan Bossart <nathandbossart@gmail.com> Discussion: https://postgr.es/m/CC661D60-6F4C-474D-B9CF-E789ACA3CEFC@yesql.se Backpatch-through: 16
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions