aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-02-21 12:59:25 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2015-02-21 12:59:54 -0500
commitb26e2081423cf1c70f83a11787351017c97cfd7c (patch)
tree281089643c936753c24b604c7c8b13a59376858f /src/backend/executor
parent64235fecc6d377690444ca3702257b5e39ed3413 (diff)
downloadpostgresql-b26e2081423cf1c70f83a11787351017c97cfd7c.tar.gz
postgresql-b26e2081423cf1c70f83a11787351017c97cfd7c.zip
Fix misparsing of empty value in conninfo_uri_parse_params().
After finding an "=" character, the pointer was advanced twice when it should only advance once. This is harmless as long as the value after "=" has at least one character; but if it doesn't, we'd miss the terminator character and include too much in the value. In principle this could lead to reading off the end of memory. It does not seem worth treating as a security issue though, because it would happen on client side, and besides client logic that's taking conninfo strings from untrusted sources has much worse security problems than this. Report and patch received off-list from Thomas Fanghaenel. Back-patch to 9.2 where the faulty code was introduced.
Diffstat (limited to 'src/backend/executor')
0 files changed, 0 insertions, 0 deletions