[FFmpeg-devel] [PATCH] avcodec/mimic: Fix undefined pointer arithmetic
Michael Niedermayer
michael at niedermayer.cc
Fri Aug 12 20:32:36 EEST 2022
On Fri, Aug 12, 2022 at 02:40:43PM +0200, Andreas Rheinhardt wrote:
> NULL + anything is UB.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
> libavcodec/mimic.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
if its NULL, LGTM
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20220812/fac935e1/attachment.sig>
More information about the ffmpeg-devel
mailing list