[FFmpeg-devel] [PATCH] lavu/opt: Fix return of uninitialised value
    Anton Khirnov 
    anton at khirnov.net
       
    Wed Aug 28 17:48:06 EEST 2024
    
    
  
Quoting Marvin Scholz (2024-08-28 03:08:39)
> In one of the failure paths of av_opt_get_array, the ret variable
> was accidentally declared again, shadowing the outer one and once when
> jumping to the fail label would return the still uninitialised outer
> one.
> 
> To fix this simply remove the local declaration of ret that shadowed
> the outer one.
> 
> Introduced in d89930f8666c563a96f1dc1835b450522b4cd6da
> 
> Fixes: CID1618663 Uninitialized scalar variable
> ---
>  libavutil/opt.c | 1 -
>  1 file changed, 1 deletion(-)
Looks ok, thanks.
-- 
Anton Khirnov
    
    
More information about the ffmpeg-devel
mailing list