diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-11-26 00:26:23 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-11-26 00:26:23 +0000 |
commit | 739259d62e6f96afecea1470c69004631d7aa264 (patch) | |
tree | e1e9f58dda5d66578f0356bf7593fec8acbaa849 /src/backend/access/transam/xlogutils.c | |
parent | 8a10096440eaf1f5b918aebec71c2d5ad2687fe6 (diff) | |
download | postgresql-739259d62e6f96afecea1470c69004631d7aa264.tar.gz postgresql-739259d62e6f96afecea1470c69004631d7aa264.zip |
Adjust the behavior of the PQExpBuffer code to make it have well-defined
results (ie, an empty "broken" buffer) if memory overrun occurs anywhere
along the way to filling the buffer. The previous coding would just silently
discard portions of the intended buffer contents, as exhibited in trouble
report from Sam Mason. Also, tweak psql's main loop to correctly detect
and report such overruns. There's probably much more that should be done
in this line, but this is a start.
Diffstat (limited to 'src/backend/access/transam/xlogutils.c')
0 files changed, 0 insertions, 0 deletions