Re: [FFmpeg-devel] [PATCH] avutil/encryption_info: Don't pass NULL to memcpy

2019-09-20 Thread Michael Niedermayer
On Wed, Sep 18, 2019 at 08:20:10PM +0200, Tomas Härdin wrote: > ons 2019-09-18 klockan 02:03 +0200 skrev Andreas Rheinhardt: > > The pointer arguments to memcpy (and several other functions of the > > C standard library) are not allowed to be NULL, not even when the number > > of bytes to copy is z

Re: [FFmpeg-devel] [PATCH] avutil/encryption_info: Don't pass NULL to memcpy

2019-09-18 Thread Tomas Härdin
ons 2019-09-18 klockan 02:03 +0200 skrev Andreas Rheinhardt: > The pointer arguments to memcpy (and several other functions of the > C standard library) are not allowed to be NULL, not even when the number > of bytes to copy is zero. An AVEncryptionInitInfo's data pointer is > explicitly allowed to

[FFmpeg-devel] [PATCH] avutil/encryption_info: Don't pass NULL to memcpy

2019-09-17 Thread Andreas Rheinhardt
The pointer arguments to memcpy (and several other functions of the C standard library) are not allowed to be NULL, not even when the number of bytes to copy is zero. An AVEncryptionInitInfo's data pointer is explicitly allowed to be NULL and yet av_encryption_init_info_add_side_data unconditionall