pgsql: Consistently pass an "unsigned char" to ctype.h functions.

Поиск
Список
Период
Сортировка
От Noah Misch
Тема pgsql: Consistently pass an "unsigned char" to ctype.h functions.
Дата
Msg-id E1X3eEO-0008Ot-9G@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Consistently pass an "unsigned char" to ctype.h functions.

The isxdigit() calls relied on undefined behavior.  The isascii() call
was well-defined, but our prevailing style is to include the cast.
Back-patch to 9.4, where the isxdigit() calls were introduced.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/49c279efe7858454114bd304444e95573be0804b

Modified Files
--------------
contrib/pg_upgrade/controldata.c |    2 +-
src/backend/utils/adt/json.c     |    7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)


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

Предыдущее
От: Noah Misch
Дата:
Сообщение: pgsql: Consistently pass an "unsigned char" to ctype.h functions.
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Fix decoding of MULTI_INSERTs when rows other than the last are