Re: Interesting message about printf()'s in PostgreSQL

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Interesting message about printf()'s in PostgreSQL
Дата
Msg-id GNELIHDDFBOCMGBFGEFOKEKFCDAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: Interesting message about printf()'s in PostgreSQL  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Interesting message about printf()'s in PostgreSQL
Список pgsql-hackers
> I've just finished a quick grep through the backend sources for
> "sprintf", and identified the following files as containing possible
> problems:
> src/backend/port/dynloader/freebsd.c

This one is perhaps dodgy.  You ahve this:

static char error_message[BUFSIZ];

Then you have this:
       sprintf(error_message, "dlopen (%s) not supported", file);

Where file isn't restricted in length I think...

So does that mean if you go:

CREATE FUNCTION blah AS '/home/chriskl/[90000 characters here].so' LANGUAGE
'C';

Sort of thing you could crash it?

Chris



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

Предыдущее
От: Don Baccus
Дата:
Сообщение: Re: OOP real life example (was Re: Why is MySQL more chosen
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Interesting message about printf()'s in PostgreSQL