[FFmpeg-devel] [PATCH]lavf/nutenc: Do not call memcmp() with NULL argument

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Jul 2 09:29:34 EEST 2019


On 01.07.2019, at 01:12, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> Undefined behaviour was reported in ticket #7981, attached patch tries
> to fix it.

I suspect it makes more sense to check header_len against 0?
And is the NULL pointer really undefined behaviour even if length is 0?



More information about the ffmpeg-devel mailing list