pgsql/src/backend/libpq (be-fsstubs.c be-pqexec.c)

From: Tom Lane <tgl>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src/backend/libpq (be-fsstubs.c be-pqexec.c)
Date: 2000-07-07 21:12:59
Message-ID: 200007072112.e67LCxr74932@hub.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Date: Friday, July 7, 2000 @ 17:12:58
Author: tgl

Update of /home/projects/pgsql/cvsroot/pgsql/src/backend/libpq
from hub.org:/home/projects/pgsql/tmp/cvs-serv74781/src/backend/libpq

Modified Files:
be-fsstubs.c be-pqexec.c

----------------------------- Log Message -----------------------------

Fix misuse of StrNCpy to copy and add null to non-null-terminated data.
Does not work since it fetches one byte beyond the source data, and when
the phase of the moon is wrong, the source data is smack up against the
end of backend memory and you get SIGSEGV. Don't laugh, this is a fix
for an actual user bug report.

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2000-07-07 21:29:58 REL7_0_PATCHES pgsql/src/backend/utils/adt (like.c regexp.c varchar.c)
Previous Message Tom Lane 2000-07-07 21:12:52 pgsql/src/backend/utils/adt (like.c not_in.c regexp.c varchar.c)