]> git.sesse.net Git - ffmpeg/commit
avformat/utils: Add av_assert1 to preclude NULL + len, len != 0
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 14 Feb 2021 22:55:39 +0000 (23:55 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 15 Feb 2021 15:50:55 +0000 (16:50 +0100)
commitda857099e92fb7fede6d7b9e6b26879ce9c5a483
treec76830ff9feea247ed4d9fa9e69787349b8c5e87
parentc0d0b1c4f6f804796488adf3e552be88c0cee1a4
avformat/utils: Add av_assert1 to preclude NULL + len, len != 0

Such a scenario is undefined behaviour and would also indicate a bug
in our code.

Suggested-by: James Almer <jamrial@gmail.com>
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/utils.c