Nikolas Klauser
15860446a8
[libc++] Fix basic_string not allowing max_size() elements to be stored ( #125423 )
...
Without this patch `basic_string` cannot be properly resized to be
`max_size()` elements in size, even if an allocation is successful.
`__grow_by` allocates one less element than required, resulting in an
out-of-bounds access. At the same time, `max_size()` has an off-by-one
error, since there has to be space to store the null terminator, which
is currently ignored.
2025-02-23 19:02:14 +01:00
..
2024-10-12 09:49:52 +02:00
2024-09-16 15:06:20 -04:00
2024-09-05 12:41:20 -04:00
2024-05-07 18:35:25 +02:00
2024-09-11 08:59:46 +02:00
2024-08-24 09:55:17 -07:00
2024-10-21 15:04:06 -07:00
2024-10-17 10:38:29 -04:00
2024-08-22 11:47:56 +02:00
2025-02-06 17:55:02 +01:00
2024-05-09 18:39:08 +02:00
2024-09-05 12:41:20 -04:00
2024-09-11 08:59:46 +02:00
2024-08-01 10:57:21 +02:00
2024-03-29 12:06:09 +01:00
2024-08-20 14:36:11 -04:00
2025-01-08 17:34:48 -05:00
2024-07-05 11:25:59 +02:00
2024-09-16 15:06:20 -04:00
2024-08-26 17:52:33 -04:00
2024-09-16 15:06:20 -04:00
2025-02-22 14:50:48 +01:00
2024-04-22 10:14:54 -04:00
2024-09-12 09:48:59 -04:00
2025-02-23 19:02:14 +01:00
2025-02-08 09:26:59 +08:00
2024-05-28 12:20:58 -07:00
2024-06-18 11:01:43 +02:00
2024-05-09 18:39:08 +02:00
2024-09-16 15:06:20 -04:00
2024-09-05 12:41:20 -04:00
2024-08-16 13:50:05 -05:00
2024-09-12 15:07:49 -04:00
2025-02-05 11:39:49 -05:00
2024-12-10 10:24:40 -05:00
2024-07-31 12:58:09 -04:00
2024-04-10 20:34:58 +02:00
2025-02-15 20:15:32 +01:00
2024-09-16 15:06:20 -04:00
2024-08-20 14:36:11 -04:00
2025-01-24 09:34:42 +01:00
2024-04-17 21:32:23 -07:00
2024-09-05 12:41:20 -04:00