]> 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:29:51 +0000 (00:29 -0400)
commit333b7db8b39679acf0665b3fc4ad99cbc14fbba7
tree07fadd4734a73a7ad4129b9076ce405586909af4
parente254ff21d1286fe5c2b5ecdfa9bb6b15a7830fcd
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