mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-09 07:39:27 +02:00
a9f0dbc39d
PQsetvalue unnecessarily duplicated the logic in pqAddTuple, and didn't duplicate it exactly either --- pqAddTuple does not care what is in the tuple-pointer array positions beyond the last valid entry, whereas the code in PQsetvalue assumed such positions would contain NULL. This led to possible crashes if PQsetvalue was applied to a PGresult that had previously been enlarged with pqAddTuple, for instance one built from a server query. Fix by relying on pqAddTuple instead of duplicating logic, and not assuming anything about the contents of res->tuples[res->ntups]. Back-patch to 8.4, where PQsetvalue was introduced. Andrew Chernow |
||
---|---|---|
.. | ||
po | ||
.gitignore | ||
bcc32.mak | ||
exports.txt | ||
fe-auth.c | ||
fe-auth.h | ||
fe-connect.c | ||
fe-exec.c | ||
fe-lobj.c | ||
fe-misc.c | ||
fe-print.c | ||
fe-protocol2.c | ||
fe-protocol3.c | ||
fe-secure.c | ||
libpq-events.c | ||
libpq-events.h | ||
libpq-fe.h | ||
libpq-int.h | ||
libpq.rc.in | ||
Makefile | ||
nls.mk | ||
pg_service.conf.sample | ||
pqexpbuffer.c | ||
pqexpbuffer.h | ||
pqsignal.c | ||
pqsignal.h | ||
pthread-win32.c | ||
README | ||
win32.c | ||
win32.h | ||
win32.mak |
src/interfaces/libpq/README This directory contains the C version of Libpq, the POSTGRES frontend library.