Commit c2657633 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/alsdec: Check for overread

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6b6ae7c3
......@@ -1493,6 +1493,11 @@ static int read_frame_data(ALSDecContext *ctx, unsigned int ra_frame)
// TODO: read_diff_float_data
if (get_bits_left(gb) < 0) {
av_log(ctx->avctx, AV_LOG_ERROR, "Overread %d\n", -get_bits_left(gb));
return AVERROR_INVALIDDATA;
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment