Files
turso/core
Pekka Enberg b73df180cc Merge 'Fix various issues in insert_into_cell()' from Krishna Vishal
There are two bugs in #1085.
1. `find_free_cell` accesses non-existent free blocks and returns their
size to `allocate_space`. This is out of range access error. The fix is
to add a loop termination condition that stops it when we hit the end of
the blocks
2. This bug is caused by `find_free_cell` some how swallowing the blocks
with size `4 bytes`. So `compute_free_space` consistently undercounts by
`4 bytes`. I've refactored that part of the code to make sure 4 sized
block are not deleted.
I've also added a unit test which proves these fixes work and also added
a function called `debug_print_freelist` which prints all free blocks of
a page.
For now I've silenced the `overflow_page` tests.
Fixes #1085

Closes #1111
2025-03-12 18:51:19 +02:00
..
2025-03-05 14:07:48 +01:00
2025-03-05 14:07:48 +01:00
2025-03-06 12:58:41 +02:00
2025-01-28 14:55:38 -05:00
2025-03-05 14:07:48 +01:00
2025-02-06 23:46:00 -03:00
2025-01-28 14:55:38 -05:00
2025-03-12 16:26:29 +01:00
2025-02-11 09:03:36 -04:00
2025-02-06 13:40:34 +02:00
2024-12-24 18:04:30 +01:00
2025-03-04 14:35:40 +02:00