aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeBitmapOr.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:52:50 +0200
commit0fe5a4cd7579289ac8b73feb61f72ef9e6995200 (patch)
treebf1bd3eb6f15403f35402e2b12ff2baf46b39706 /src/backend/executor/nodeBitmapOr.c
parent6f4d38dbe06867df01dd62b52dae1654eba3976f (diff)
downloadpostgresql-0fe5a4cd7579289ac8b73feb61f72ef9e6995200.tar.gz
postgresql-0fe5a4cd7579289ac8b73feb61f72ef9e6995200.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/nodeBitmapOr.c')
0 files changed, 0 insertions, 0 deletions