Re: Why the asprintf patch is still breaking the buildfarm

Поиск
Список
Период
Сортировка
От Florian Weimer
Тема Re: Why the asprintf patch is still breaking the buildfarm
Дата
Msg-id 526772D1.7040101@redhat.com
обсуждение исходный текст
Ответ на Re: Why the asprintf patch is still breaking the buildfarm  (Noah Misch <noah@leadboat.com>)
Ответы Re: Why the asprintf patch is still breaking the buildfarm  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 10/23/2013 03:05 AM, Noah Misch wrote:

> I would vote for choosing the standard we want vsnprintf() to follow (probably
> C99) and substituting a conforming implementation wherever "configure" detects
> that libc does not conform.  We'll be shipping some replacement vsnprintf() in
> any case; we may as well use it to insulate the rest of our code from
> less-preferred variants.

Do you care about the snprintf behavior on very large buffers (larger 
than INT_MAX)?  Then there's further complication, and it's an area 
where glibc behavior is likely to change in the future (because it is 
claimed that C99 and POSIX conflict, and glibc implements neither behavior).

-- 
Florian Weimer / Red Hat Product Security Team



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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Add \i option to bring in the specified file as a quoted literal
Следующее
От: Florian Weimer
Дата:
Сообщение: Re: Reasons not to like asprintf