[FFmpeg-devel] [PATCH] Fixed null dereference in ffplay

Emma Romano emma at soatech.io
Sun Jun 15 19:08:28 EEST 2025


Hello to all, I didn't mean to publish this, this was in my drafts and 
it somehow was sent without me asking to, I ask you to ignore this as I 
didn't mean to send this

My apologizes

On 6/15/25 6:03 PM, Emma Romano wrote:
>
>
> ---
>  libavcodec/vp3.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
> index 3089499a0f..aff5be6879 100644
> --- a/libavcodec/vp3.c
> +++ b/libavcodec/vp3.c
> @@ -1315,6 +1315,9 @@ static int unpack_dct_coeffs(Vp3DecodeContext 
> *s, GetBitContext *gb)
>      dc_y_table = get_bits(gb, 4);
>      dc_c_table = get_bits(gb, 4);
>
> +    if(!coeff_vlc)
> +      return AVERROR_INVALIDDATA;
> +
>      /* unpack the Y plane DC coefficients */
>      residual_eob_run = unpack_vlcs(s, gb, coeff_vlc[dc_y_table], 0,
>                                     0, residual_eob_run);
> -- 
> 2.48.1
>


More information about the ffmpeg-devel mailing list