Files
glib/glib
Michael Catanzaro cc647f9e46 gstring: carefully handle gssize parameters
Wherever we use gssize to allow passing -1, we need to ensure we don't
overflow the value by assigning a gsize to it without checking if the
size exceeds the maximum gssize. The safest way to do this is to just
use normal gsize everywhere instead and use gssize only for the
parameter.

Our computers don't have enough RAM to write tests for this. I tried
forcing string->len to high values for test purposes, but this isn't
valid and will just cause out of bounds reads/writes due to
string->allocated_len being unexpectedly small, so I don't think we can
test this easily.
2025-04-10 10:57:20 -05:00
..
2023-11-28 13:52:05 +00:00
2023-11-02 16:30:23 +00:00
2023-11-02 16:30:23 +00:00
2022-05-23 09:19:45 -04:00
2024-09-06 10:49:31 -04:00
2024-09-18 01:48:36 +01:00
2023-11-15 11:09:39 +00:00
2023-11-15 11:09:39 +00:00
2024-04-01 11:01:06 +00:00
2023-02-09 13:36:51 +00:00
2018-01-04 22:19:30 +01:00
2024-04-01 11:01:06 +00:00
2025-02-10 10:26:42 +01:00
2022-07-25 22:30:22 +01:00
2021-09-21 09:41:29 +00:00
2025-02-10 10:26:42 +01:00
2021-11-18 14:32:09 +00:00
2023-10-11 17:38:31 +01:00
2023-10-11 17:38:31 +01:00
2024-10-09 11:26:20 +02:00
2024-07-09 20:16:20 +01:00
2023-10-11 17:38:31 +01:00
2023-11-28 13:52:05 +00:00
2025-02-10 10:26:42 +01:00
2023-10-23 10:25:31 +01:00
2024-11-15 13:59:52 -05:00
2025-04-07 03:26:09 +01:00
2024-12-03 08:06:17 +00:00
2024-12-03 08:06:17 +00:00
2024-12-03 08:06:17 +00:00
2023-10-11 17:38:31 +01:00
2024-10-09 11:26:20 +02:00
2023-11-28 13:52:05 +00:00
2024-10-21 19:31:56 +01:00
2023-11-28 13:52:05 +00:00
2023-11-28 13:52:05 +00:00
2024-10-09 11:26:20 +02:00
2025-02-19 20:52:01 +08:00
2024-04-01 11:01:06 +00:00
2024-10-09 11:26:20 +02:00