| От | Tom Lane |
|---|---|
| Тема | Re: Fixes for compiler warnings |
| Дата | |
| Msg-id | 23977.1232260131@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Fixes for compiler warnings (Gregory Stark <stark@enterprisedb.com>) |
| Ответы |
Re: Fixes for compiler warnings
|
| Список | pgsql-hackers |
Gregory Stark <stark@enterprisedb.com> writes:
> There's an argument to be made that the code is easier to audit if you put the
> "%s" format string in explicitly too.
Yeah, the risk this is trying to guard against is variables containing
"%" unexpectedly. Even if that's not possible, it requires some work
to verify and it's a bit fragile. I didn't look at the specific cases
yet but in general I think this is a good policy.
One thing to watch out for is that the intention may have been to allow
the strings to be translated.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера