[FFmpeg-devel] [PATCH]lavc/avpacket: Fix undefined behaviour, do not pass null pointer to memcpy()
Carl Eugen Hoyos
ceffmpeg at gmail.com
Sun Sep 4 22:43:00 EEST 2016
2016-09-04 21:24 GMT+02:00 Nicolas George <george at nsup.org>:
>> Subject: [PATCH] lavc/avpacket: Fix undefined behaviour,
>> do not pass a null pointer to memcpy().
> I read the spec for memcpy(), passing NULL is not stated as an
> undefined behaviour if the size if 0. UBSan seems to be
> reporting a false positive.
This site claims that ISO disagrees:
(No opinion whatsoever here, just a ticket.)
More information about the ffmpeg-devel