]> granicus.if.org Git - postgresql/commit
Consistently pass an "unsigned char" to ctype.h functions.
authorNoah Misch <noah@leadboat.com>
Sun, 6 Jul 2014 04:29:51 +0000 (00:29 -0400)
committerNoah Misch <noah@leadboat.com>
Sun, 6 Jul 2014 04:30:11 +0000 (00:30 -0400)
commit49c279efe7858454114bd304444e95573be0804b
tree32d94898357a5c5001b8e4ac079241a0774ffda0
parente44964c709b4a5f18d3f9a8fe6d5c259091315c1
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.
contrib/pg_upgrade/controldata.c
src/backend/utils/adt/json.c