Fix array subscript warnings
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Thu, 30 Nov 2023 09:56:48 +0000 (10:56 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Thu, 30 Nov 2023 09:56:48 +0000 (10:56 +0100)
commit17935e1fdf0aff083347b4b2d6268d945041d188
tree0207b3b86451f642c3a27c1b8a45070a790242d7
parentb589f211e025eb66f7c9e5a0b0cc23cc6fff3605
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
src/bin/pg_dump/filter.c