Files
ladybird/Kernel
Andrew Kaster 3f0dcd63dc Kernel: Fix TmpFS resize behavior around INT32_MAX for 32-bit systems
We need some overflow checks due to the implementation of TmpFS.
When size_t is 32 bits and off_t is 64 bits, we might overflow our
KBuffer max size and confuse the KBuffer set_size code, causing a VERIFY
failure. Make sure that resulting offset + size will fit in a size_t.
Another constraint, we make sure that the resulting offset + size will
be less than half of the maximum value of a size_t, because we double
the KBuffer size each time we resize it.
2021-07-11 19:42:00 +02:00
..
2021-07-11 14:14:51 +02:00
2021-07-11 14:14:51 +02:00
2021-07-11 14:14:51 +02:00
2021-06-24 00:38:23 +02:00
2021-06-28 15:55:00 +02:00
2021-06-24 10:29:09 +02:00
2021-06-24 10:29:09 +02:00
2021-06-24 00:38:23 +02:00
2021-06-24 00:38:23 +02:00
2021-06-24 00:38:23 +02:00
2021-07-05 23:30:15 +02:00
2021-07-11 14:14:51 +02:00
2021-06-24 00:38:23 +02:00
2021-07-05 23:30:15 +02:00
2021-06-24 00:38:23 +02:00
2021-06-24 00:38:23 +02:00
2021-06-04 10:39:41 +02:00