pgsql: Fix possible buffer overrun in hba.c.

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема pgsql: Fix possible buffer overrun in hba.c.
Дата
Msg-id E1gMPWK-0006Dc-0Y@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix possible buffer overrun in hba.c.

Coverty reports a possible buffer overrun in the code that populates the
pg_hba_file_rules view.  It may not be a live bug due to restrictions
on options that can be used together, but let's increase MAX_HBA_OPTIONS
and correct a nearby misleading comment.

Back-patch to 10 where this code arrived.

Reported-by: Julian Hsiao
Discussion: https://postgr.es/m/CADnGQpzbkWdKS2YHNifwAvX5VEsJ5gW49U4o-7UL5pzyTv4vTg%40mail.gmail.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5574a0181962195f355863940f1c010f8e9875f6

Modified Files
--------------
src/backend/libpq/hba.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)


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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: pgsql: Fix possible buffer overrun in hba.c.
Следующее
От: Thomas Munro
Дата:
Сообщение: pgsql: Fix handling of HBA ldapserver with multiple hostnames.