Files
Milan Kyselica 7a8d4975fe codec_codec2: Only process complete Codec2 frames in decoder
The codec2_samples() function uses floor division (160 * datalen/6)
to compute expected output samples, but the decode loop condition
(x < datalen) iterates with ceiling behavior when datalen is not a
multiple of CODEC2_FRAME_LEN. This mismatch causes the loop to
decode one extra frame beyond what the framework bounds check
budgeted for, leading to an out-of-bounds write on the output buffer.

Change the loop condition to only process complete frames, matching
the floor-division behavior of codec2_samples(). This also prevents
an out-of-bounds read on the input side when fewer than
CODEC2_FRAME_LEN bytes remain.

Resolves: #GHSA-qf8j-jp7h-c5hx
2026-06-25 08:21:35 -06:00
..
2021-11-16 06:01:59 -06:00
2021-11-16 06:01:59 -06:00
2021-11-16 06:01:59 -06:00
2021-11-16 06:01:59 -06:00
2021-11-16 06:01:59 -06:00
2021-01-04 05:00:58 -06:00