fix: report truncated `.olean` files as errors

This PR makes loading a truncated `.olean` file fail with an error message instead of reading beyond the end of the file.

Note that Lean ultimately still has to trust in the overall integrity of `.olean` files.

`lean_compacted_region_read` now checks the section framing against the file size: `data_size`, the closure offset table, and the library relocation table in `read_lib_table_from_buffer` must lie within the file, and each closure offset must lie within the compacted data.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
4 files changed