forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 780c4a9016142df90e3f21daa86bd8a4f093e596Filtered to tools/golden/src/encode_audio.rsClear filter

Today

B11: ec-alac encoder validates input, no panicsAhmet Kaan Gümüş · 4aa9f94
B11: ec-alac encoder validates input, no panics

send_frame checked neither channel count nor plane length: a short or
missing plane panicked on indexing (planar) or was silently truncated
(interleaved). Now channel count and every sample read go through
sample_at(), returning Corrupt/Unsupported.

encode_frame returns Result and rejects n > frame_length (spec B11; the
cookie declares frame_length as the per-frame maximum, so a larger frame
is a non-conformant stream). Output for valid input is unchanged; callers
in tools/golden and tools/ec-bench updated.
Verify: ec-alac encode/round-trip tests and alac golden (orchestrator).