Обсуждение: pgsql/contrib/miscutil (misc_utils.c)

Поиск
Список
Период
Сортировка

pgsql/contrib/miscutil (misc_utils.c)

От
Tom Lane
Дата:
  Date: Friday, July  7, 2000 @ 17:12:50
Author: tgl

Update of /home/projects/pgsql/cvsroot/pgsql/contrib/miscutil
     from hub.org:/home/projects/pgsql/tmp/cvs-serv74781/contrib/miscutil

Modified Files:
    misc_utils.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.