]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix out-of-memory error handling in ParameterDescription message processing.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 14 Dec 2015 16:19:10 +0000 (18:19 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 14 Dec 2015 16:48:49 +0000 (18:48 +0200)
commit4b58ded7498fccac1526cb27788dd7baad651b14
tree4d1791087d04ebfd75180dbb8e13dd630a610d41
parent476c54b89b55c980241ee10d6c3fed32e389135f
Fix out-of-memory error handling in ParameterDescription message processing.

If libpq ran out of memory while constructing the result set, it would hang,
waiting for more data from the server, which might never arrive. To fix,
distinguish between out-of-memory error and not-enough-data cases, and give
a proper error message back to the client on OOM.

There are still similar issues in handling COPY start messages, but let's
handle that as a separate patch.

Michael Paquier, Amit Kapila and me. Backpatch to all supported versions.
src/interfaces/libpq/fe-protocol3.c