dbmirror had sprintf string too short

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
dbmirror had sprintf string too short
Дата
Msg-id
200211260309.gAQ39fX17601@candle.pha.pa.us
Список
I have just applied a patch to 7.3 and current CVS to properly allocate
an sprintf string in dbmirror:
       fullyqualtblname = SPI_palloc(strlen(tblname) +                          strlen(schemaname) + 6);       sprintf(fullyqualtblname,"\"%s\".\"%s\"",           schemaname,tblname);

Old code had 4 instead of 6.  Tatsuo found this bug.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610) 359-1001 +  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

В списке pgsql-hackers по дате отправления
От: Justin Clift
Дата:
От: Al Sutton
Дата:
FAQ