[FFmpeg-devel] [PATCH]lavc/frame_thread_encoder: Do not memcpy() from NULL

Carl Eugen Hoyos ceffmpeg at gmail.com
Tue Jul 2 12:44:19 EEST 2019


Am Di., 2. Juli 2019 um 08:31 Uhr schrieb Reimar Döffinger
<Reimar.Doeffinger at gmx.de>:
>
> On 01.07.2019, at 00:51, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> > I believe attached patch fixes undefined behaviour and ticket #7981.
>
> Same here, I think it makes more sense to check the "size" instead of the pointer.

True, new patch attached.

> But I also suspect we might want to think of a way to not need all these explicit checks all over.

There are some places, but not so many afair.

Carl Eugen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavc-frame_thread_encoder-Do-not-memcpy-from-NULL.patch
Type: text/x-patch
Size: 1063 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190702/481d2c67/attachment.bin>


More information about the ffmpeg-devel mailing list