[FFmpeg-devel] [PATCH] avcodec/flac_parser: Consider AV_INPUT_BUFFER_PADDING_SIZE

Michael Niedermayer michael at niedermayer.cc
Thu Oct 21 15:11:32 EEST 2021

On Thu, Oct 21, 2021 at 02:00:01PM +0200, Michael Niedermayer wrote:
> Fixes: out if array read
> Fixes: 40109/clusterfuzz-testcase-minimized-ffmpeg_dem_FLAC_fuzzer-4805686811295744
> Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> CC: Mattias Wadman <mattias.wadman at gmail.com>
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  libavcodec/flac_parser.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Note, iam not sure this is enough, but it fixes this specific sample

a more complete audit/review of the flac parser is maybe not a bad idea
if someone has time



Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20211021/10252233/attachment.sig>

More information about the ffmpeg-devel mailing list