mirror of
https://github.com/morluto/rea.git
synced 2026-11-29 01:46:39 +00:00
* feat(artifacts): report declared Ogg Opus, RIFF/XMA2, Bink 2 and Vulkan pipeline-cache headers Recognize the four remaining #14155 media/cache containers by their public header signatures and inventory them as archives. Root format metadata carries the declared header facts; each named byte region is a member that is hashed and extractable. Payloads stay opaque: no audio, video or pipeline-cache body decode. Disagreeing extents stay in extent_check with unknown coverage rather than a refusal. Structural header faults refuse as malformed input with format and offset. Completes the remaining formats from #14155 after #14248. * fix(artifacts): bound media-asset header walks and document formats Stop RIFF inventory from buffering opaque chunks, keep chunk walks inside the declared form, follow spanned OpusTags before audio, preserve first-page truncation, ground the Bink fixture/table split, and document the formats. * fix(media): keep truncated RIFF chunk facts and register guide sidebar Record incomplete RIFF/XMA2 chunk headers in metadata, treat cut-off fmt as truncated rather than missing, and add media-asset-headers to the VitePress sidebar registry. * fix(artifacts): report cut-off media headers as truncated Short RIFF, Bink 2, and Vulkan pipeline-cache headers that end before the declared header size are truncated inputs, not malformed structure. * fix(artifacts): read Bink 2 headers at their demuxer offsets and keep Ogg and RIFF facts * fix(pe): name media asset formats as PE overlay leading formats * refactor(artifacts): format the Bink revision byte with the shared hex helper * fix(artifacts): bound Bink frames.bin to the declared file end Trailing bytes past the header size field are no longer claimed as frame payload. Tables that do not fit the declared extent stay unlisted. * fix(artifacts): keep unlisted Bink tables in the extent check When header tables end past the declared file size, still measure the frame-offset table against the file so extent_check reports truncated instead of consistent while the tables remain unlisted. * fix(artifacts): admit media asset regions with a per-call limit and report incomplete headers * refactor(artifacts): import the reader limit failure through the resources entry * fix(artifacts): keep Ogg page records as ranges, not buffer slices Growing the read buffer with Buffer.concat left each saved page's packet slice pinning the previous copy, so a long OpusTags continuation retained O(n²) bytes before region_count refused the walk. Page records now store packet offsets and read from the final buffer. * fix(media-asset): read Ogg pages by position and report required region count * fix(media-asset): keep Bink audio track facts inside the declared end Refuse to decode track tables past declaredEnd so appended physical bytes are not reported as audio_tracks. * fix(artifacts): keep Ogg header reads inside their own packet --------- Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>