aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeRecursiveunion.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2016-12-16 12:50:20 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2016-12-16 12:53:04 +0200
commit4f5182e18d3ec7b84c24ceba2c436ea890c95e25 (patch)
treef96c0266aaabc89b0f2f551239664f11d9100440 /src/backend/executor/nodeRecursiveunion.c
parent93513d1b6559b2d0805f0b02d312ee550e3d010b (diff)
downloadpostgresql-4f5182e18d3ec7b84c24ceba2c436ea890c95e25.tar.gz
postgresql-4f5182e18d3ec7b84c24ceba2c436ea890c95e25.zip
Fix off-by-one in memory allocation for quote_literal_cstr().
The calculation didn't take into account the NULL terminator. That lead to overwriting the palloc'd buffer by one byte, if the input consists entirely of backslashes. For example "format('%L', E'\\')". Fixes bug #14468. Backpatch to all supported versions. Report: https://www.postgresql.org/message-id/20161216105001.13334.42819%40wrigleys.postgresql.org
Diffstat (limited to 'src/backend/executor/nodeRecursiveunion.c')
0 files changed, 0 insertions, 0 deletions