Re: [FFmpeg-devel] [PATCH] libavformat/ffmetadecc.c: Fix Use-of-uninitialized-value

2020-08-21 Thread Michael Niedermayer
On Thu, Aug 20, 2020 at 12:14:52PM -0700, Thierry Foucu wrote: > Check the return value of sscanf as it can return -1(EOF), for example > when the first char in the line is 0x00 > --- > libavformat/ffmetadec.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) will apply thx [...] -

[FFmpeg-devel] [PATCH] libavformat/ffmetadecc.c: Fix Use-of-uninitialized-value

2020-08-20 Thread Thierry Foucu
Check the return value of sscanf as it can return -1(EOF), for example when the first char in the line is 0x00 --- libavformat/ffmetadec.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavformat/ffmetadec.c b/libavformat/ffmetadec.c index 45c92f1ff6..0ea89fe3f3 10064