Re: [FFmpeg-devel] [PATCH] avcodec/mimic: Fix undefined pointer arithmetic

2022-08-12 Thread Andreas Rheinhardt
Michael Niedermayer: > On Fri, Aug 12, 2022 at 02:40:43PM +0200, Andreas Rheinhardt wrote: >> NULL + anything is UB. >> >> Signed-off-by: Andreas Rheinhardt >> --- >> libavcodec/mimic.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) > > if its NULL, LGTM > It is (at least for the f

Re: [FFmpeg-devel] [PATCH] avcodec/mimic: Fix undefined pointer arithmetic

2022-08-12 Thread Michael Niedermayer
On Fri, Aug 12, 2022 at 02:40:43PM +0200, Andreas Rheinhardt wrote: > NULL + anything is UB. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/mimic.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) if its NULL, LGTM thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6