| От | Tom Lane |
|---|---|
| Тема | Re: Binary support for pgoutput plugin |
| Дата | |
| Msg-id | 3029175.1594780128@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Binary support for pgoutput plugin (Andres Freund <andres@anarazel.de>) |
| Ответы |
Re: Binary support for pgoutput plugin
|
| Список | pgsql-hackers |
Andres Freund <andres@anarazel.de> writes:
> What is the gain in having these checks? recv functions need to be safe
> against arbitrary input, so a type crosscheck doesn't buy additional
> safety in that regard. Not that a potential attacker couldn't just
> change the content anyways?
You're confusing security issues with user-friendliness issues.
Detecting that you sent the wrong type via an OID mismatch error
is a lot less painful than trying to figure out why you've got
errors along the line of "incorrect binary data format".
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера