dbmirror had sprintf string too short

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема dbmirror had sprintf string too short
Дата
Msg-id 200211260309.gAQ39fX17601@candle.pha.pa.us
обсуждение исходный текст
Список pgsql-hackers
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,
Pennsylvania19073
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Justin Clift
Дата:
Сообщение: Re: Postgres Security Expert???
Следующее
От: "Al Sutton"
Дата:
Сообщение: Re: [mail] Re: Native Win32 sources