Brad King
d9d9326e14
Source: Avoid out-of-range inputs to std::isspace()
...
`isspace` takes `int` but documents that the value must be representable
by `unsigned char`, or be EOF. Use a wrapper to cast to `unsigned char`
to avoid sign extension while converting to `int`. This generalizes the
fix from commit 5e8c176e2a (cmExecuteProcessCommand: Cast c to unsigned
char before cast to int, 2024-01-05) to other `isspace` call sites.
This was detected by assertions in the MSVC standard library while
processing UTF-8 text.
Issue: #25561
2024-01-17 10:17:06 -05:00
..
2022-05-24 09:09:44 -04:00
2023-08-29 10:51:30 -04:00
2021-11-02 14:45:29 -04:00
2023-11-07 09:13:25 -05:00
2023-11-07 09:13:25 -05:00
2023-08-29 10:51:30 -04:00
2023-08-29 10:51:30 -04:00
2023-10-23 11:18:32 -04:00
2023-07-28 09:14:08 -04:00
2023-08-29 10:51:30 -04:00
2022-07-05 16:55:40 -04:00
2022-07-07 09:48:58 -04:00
2023-08-29 10:51:30 -04:00
2023-02-14 14:34:03 -05:00
2023-10-23 11:18:32 -04:00
2023-11-09 09:11:55 -05:00
2023-01-12 09:25:18 -05:00
2023-01-03 07:49:22 -05:00
2024-01-17 10:17:06 -05:00
2023-01-11 15:52:37 -05:00
2022-07-25 13:52:11 -04:00
2023-10-23 11:18:32 -04:00
2023-08-29 10:51:30 -04:00
2023-08-29 10:51:30 -04:00
2023-08-29 10:51:30 -04:00
2023-08-29 10:51:30 -04:00
2021-04-26 08:55:22 -04:00
2021-04-26 08:55:22 -04:00
2023-11-17 09:58:21 -05:00
2021-07-01 15:16:23 -04:00
2023-12-03 08:30:07 -05:00
2023-12-03 08:30:07 -05:00
2023-10-23 11:18:32 -04:00
2023-08-29 10:51:30 -04:00
2023-03-29 10:41:19 -04:00
2023-03-29 10:41:19 -04:00
2023-11-21 12:40:13 -05:00
2023-11-21 12:40:13 -05:00
2023-11-09 09:11:55 -05:00
2023-11-09 09:11:55 -05:00
2021-09-21 17:14:04 +02:00
2023-04-24 10:41:10 +02:00
2022-07-07 09:48:58 -04:00
2024-01-08 14:11:40 -05:00
2024-01-08 14:11:40 -05:00
2023-10-23 11:18:32 -04:00
2023-08-29 10:51:30 -04:00
2023-07-28 09:14:08 -04:00
2021-04-26 08:55:22 -04:00
2023-11-21 08:29:17 -05:00
2023-11-21 08:29:17 -05:00
2021-07-01 15:16:23 -04:00
2021-07-01 15:16:23 -04:00
2022-03-08 08:18:02 -05:00
2021-09-15 18:08:19 +02:00
2023-01-15 23:39:02 -05:00
2021-09-13 11:29:07 +02:00
2022-07-05 16:55:40 -04:00
2022-07-07 09:48:58 -04:00
2023-08-29 10:51:30 -04:00
2023-08-29 10:51:30 -04:00
2023-07-28 09:14:08 -04:00
2023-07-28 09:14:08 -04:00
2023-06-02 06:51:13 -04:00
2023-12-03 08:30:06 -05:00
2023-12-03 08:30:06 -05:00