Re: Unbounded %s in sscanf

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: Unbounded %s in sscanf
Дата
Msg-id FC507F06-7199-435C-A3EF-0087278E44E8@yesql.se
обсуждение исходный текст
Ответ на Re: Unbounded %s in sscanf  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Unbounded %s in sscanf  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
> On 28 Jun 2021, at 16:02, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Ugh.  Shouldn't we instead modify the format to read not more than
> two characters?  Even if this is safe on non-malicious input, it
> doesn't seem like good style.

No disagreement, I was only basing it on what is in the tree.  I would propose
that we change the sscanf in _LoadBlobs() too though to eliminate all such
callsites, even though that one is even safer.  I'll prepare a patch once more
caffeine has been ingested.

--
Daniel Gustafsson        https://vmware.com/




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgindent run
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: pgindent run