[FFmpeg-devel] [PATCH 2/5] CodeAi generated fix for CWE 457 Uninitialized Variable

Nicolas George george at nsup.org
Wed Mar 7 16:42:48 EET 2018


C0deAi (2018-03-06):
> Prevent uninitialized value 'pb[1]' being passed as an
> argument on line 143.
> 
> Signed-off-by: C0deAi <benjamin.bales at assrc.us>
> ---
>  libavformat/img2enc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Nack. Passing NULL to avio_write() is just as wrong as passing
uninitialized. And it is not reachable anyway.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180307/64a85690/attachment.sig>


More information about the ffmpeg-devel mailing list