Re: lower() and unaccent() not leakproof

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: lower() and unaccent() not leakproof
Дата
Msg-id CAKFQuwYtO2ifxXzqL7BTgyjZFfUGcv=gyH9Gu+LkQQ163ib_=Q@mail.gmail.com
обсуждение исходный текст
Ответ на lower() and unaccent() not leakproof  (Christophe Pettus <xof@thebuild.com>)
Ответы Re: lower() and unaccent() not leakproof  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Список pgsql-general
On Wednesday, August 25, 2021, Christophe Pettus <xof@thebuild.com> wrote:
lower() and unaccent() (and most string functions) are not marked as leakproof.  Is this due to possible locale / character encoding errors they might encounter?


I think you are partially correct.  Its due to the fact that error messages, regardless of the root cause, result in the printing of the input value in the error message as context, thus exists a leak via a violation of “ It reveals no information about its arguments other than by its return value. ”

David J.

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

Предыдущее
От: Christophe Pettus
Дата:
Сообщение: lower() and unaccent() not leakproof
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: lower() and unaccent() not leakproof