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

2018-03-07 Thread Nicolas George
C0deAi (2018-03-06): > Prevent uninitialized value 'pb[1]' being passed as an > argument on line 143. > > Signed-off-by: C0deAi > --- > 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

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

2018-03-06 Thread C0deAi
Prevent uninitialized value 'pb[1]' being passed as an argument on line 143. Signed-off-by: C0deAi --- libavformat/img2enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c index a09cc8e..6cfbaa2 100644 --- a/libavformat/img2enc.c