mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-12 09:56:45 +02:00
Add structural validation for bytecode cache blobs using the serialized record layout. The decoder shares primitive helpers across cache sections instead of duplicating flat parsing logic. Reject bad magic values, unsupported versions, invalid enum tags, and truncated sections before materialization. Bound sequence reads against the remaining blob so malformed sidecars cannot force large allocations.