forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit17935e1
committed
Fix array subscript warnings
Commita5cf808 accidentally passed signed chars to isalpha andisspace in the parser code which leads to undefined behavior. Fixby 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.usDiscussion:https://postgr.es/m/ZWgg5xim2CXQcfmh@paquier.xyz1 parentb589f21 commit17935e1
1 file changed
+7
-7
lines changedLines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
188 |
| - | |
| 188 | + | |
189 | 189 |
| |
190 | 190 |
| |
191 |
| - | |
| 191 | + | |
192 | 192 |
| |
193 | 193 |
| |
194 | 194 |
| |
195 |
| - | |
| 195 | + | |
196 | 196 |
| |
197 | 197 |
| |
198 | 198 |
| |
| |||
301 | 301 |
| |
302 | 302 |
| |
303 | 303 |
| |
304 |
| - | |
| 304 | + | |
305 | 305 |
| |
306 | 306 |
| |
307 | 307 |
| |
| |||
312 | 312 |
| |
313 | 313 |
| |
314 | 314 |
| |
315 |
| - | |
| 315 | + | |
316 | 316 |
| |
317 | 317 |
| |
318 | 318 |
| |
| |||
351 | 351 |
| |
352 | 352 |
| |
353 | 353 |
| |
354 |
| - | |
| 354 | + | |
355 | 355 |
| |
356 | 356 |
| |
357 | 357 |
| |
| |||
400 | 400 |
| |
401 | 401 |
| |
402 | 402 |
| |
403 |
| - | |
| 403 | + | |
404 | 404 |
| |
405 | 405 |
| |
406 | 406 |
| |
|
0 commit comments
Comments
(0)