pgsql: Fix array subscript warnings

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема pgsql: Fix array subscript warnings
Дата
Msg-id E1r8dot-007wZA-DW@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix array subscript warnings

Commit a5cf808be55 accidentally passed signed chars to isalpha and
isspace in the parser code which leads to undefined behavior.  Fix
by casting the parameters to unsigned chars.

Author: Pavel Stehule <pavel.stehule@gmail.com>
Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Reported-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/388186.1701315586@sss.pgh.pa.us
Discussion: https://postgr.es/m/ZWgg5xim2CXQcfmh@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/17935e1fdf0aff083347b4b2d6268d945041d188

Modified Files
--------------
src/bin/pg_dump/filter.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)


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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Fix warning due non-standard inline declaration in 4ed8f0913bfdb
Следующее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Fix typo in 5a1dfde8334b