mirror of
https://github.com/storytold/soundcraft.git
synced 2026-10-30 05:26:52 -06:00
With symphonia 0.5, the Matroska reader allocated whatever size an element claimed before reading it, so a 30-byte file whose EBML header claims 2^48 bytes aborted the process on import, drag and drop or session open. Since the bump to symphonia 0.6 such reads grow with the data actually read (safe_read_into_boxed_slice), so the abort is gone without a SoundCraft-side check. Lock that in: the reported file, a track whose CodecPrivate claims 2^46 bytes and a SimpleBlock that claims 2^47 bytes must give an error (or, for the block, a best-effort read of what is there) under every hint, never an abort. The test passes with memory capped at 1 GB.