forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 74c8bf512d5c5c91ec0b4f86faf02fda8315dbbbFiltered 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).