ffmpeg/libavutil
Andreas Rheinhardt 5dc4b3209f avutil/encryption_info: Don't pass NULL to memcpy
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
unconditionally used it as a source pointer to copy from. This commit changes
this so that copying is only done if the number of bytes to copy is > 0.

Fixes ticket #8141 as well as a part of ticket #8150.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit e6018fda14)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-07-01 22:25:36 +02:00
..
aarch64
arm
avr32
bfin
mips
ppc
sh4
tests avutil/tests/parseutils: add some big duration tests 2018-10-07 20:26:29 +02:00
tomi
x86
.gitignore
Makefile
adler32.c
adler32.h
aes.c
aes.h
aes_ctr.c
aes_ctr.h
aes_internal.h
attributes.h
audio_fifo.c
audio_fifo.h
avassert.h
avstring.c avutil/avstring: Fix bug and undefined behavior in av_strncasecmp() 2019-06-27 17:50:47 +02:00
avstring.h
avutil.h
avutilres.rc
base64.c
base64.h
blowfish.c
blowfish.h
bprint.c
bprint.h
bswap.h
buffer.c
buffer.h
buffer_internal.h
camellia.c
camellia.h
cast5.c
cast5.h
channel_layout.c
channel_layout.h
color_utils.c
color_utils.h
colorspace.h
common.h
cpu.c
cpu.h
cpu_internal.h
crc.c
crc.h
des.c
des.h
dict.c
dict.h
display.c
display.h
downmix_info.c
downmix_info.h
dynarray.h
encryption_info.c avutil/encryption_info: Don't pass NULL to memcpy 2020-07-01 22:25:36 +02:00
encryption_info.h
error.c
error.h
eval.c
eval.h
ffmath.h
fifo.c
fifo.h
file.c
file.h
file_open.c
fixed_dsp.c
fixed_dsp.h
float_dsp.c
float_dsp.h
frame.c lavu/frame: Add error report if av_image_fill_pointers fail. 2018-10-30 13:17:09 +08:00
frame.h lavc/h264: create AVFrame side data from H.264 timecodes 2018-10-23 15:46:30 +01:00
hash.c
hash.h
hmac.c
hmac.h
hwcontext.c
hwcontext.h
hwcontext_cuda.c
hwcontext_cuda.h
hwcontext_cuda_internal.h
hwcontext_d3d11va.c
hwcontext_d3d11va.h
hwcontext_drm.c
hwcontext_drm.h
hwcontext_dxva2.c
hwcontext_dxva2.h
hwcontext_internal.h
hwcontext_mediacodec.c
hwcontext_mediacodec.h
hwcontext_opencl.c
hwcontext_opencl.h
hwcontext_qsv.c lavu/qsv: make a copy as libmfx alignment requirement for uploading 2018-10-11 13:26:59 +08:00
hwcontext_qsv.h
hwcontext_vaapi.c
hwcontext_vaapi.h
hwcontext_vdpau.c
hwcontext_vdpau.h
hwcontext_videotoolbox.c
hwcontext_videotoolbox.h
imgutils.c avutil/imgutils: Optimize memset_bytes() by using av_memcpy_backptr() 2019-01-21 07:53:26 +01:00
imgutils.h
imgutils_internal.h
integer.c avutil/integer: Fix integer overflow in av_mul_i() 2018-10-24 23:15:24 +02:00
integer.h
internal.h
intfloat.h
intmath.c
intmath.h
intreadwrite.h
lfg.c
lfg.h avutil/lfg: Correct index increment type to avoid undefined behavior 2020-01-06 11:30:44 +01:00
libavutil.v
libm.h
lls.c
lls.h
log.c
log.h
log2_tab.c
lzo.c
lzo.h
macros.h
mastering_display_metadata.c
mastering_display_metadata.h
mathematics.c
mathematics.h
md5.c
md5.h
mem.c avutil/mem: Optimize fill32() by unrolling and using 64bit 2019-01-21 07:53:26 +01:00
mem.h avutil/mem: Fix invalid use of av_alloc_size 2019-07-23 01:18:52 -03:00
mem_internal.h
motion_vector.h
murmur3.c
murmur3.h
opt.c
opt.h
parseutils.c
parseutils.h
pca.c
pca.h
pixdesc.c avutil/pixdesc: Add av_write_image_line2(), av_read_image_line2() 2018-10-27 22:39:27 +02:00
pixdesc.h avutil/pixdesc: Add av_write_image_line2(), av_read_image_line2() 2018-10-27 22:39:27 +02:00
pixelutils.c
pixelutils.h
pixfmt.h
qsort.h
random_seed.c
random_seed.h
rational.c
rational.h
rc4.c
rc4.h
replaygain.h
reverse.c
reverse.h
ripemd.c
ripemd.h
samplefmt.c
samplefmt.h
sha.c
sha.h
sha512.c
sha512.h
slicethread.c
slicethread.h
softfloat.h
softfloat_ieee754.h avutil/softfloat_ieee754: Fix odd bit position for exponent and sign in av_bits2sf_ieee754() 2020-01-06 11:30:42 +01:00
softfloat_tables.h
spherical.c
spherical.h
stereo3d.c
stereo3d.h
tablegen.h
tea.c
tea.h
thread.h
threadmessage.c
threadmessage.h
time.c
time.h
time_internal.h
timecode.c
timecode.h
timer.h
timestamp.h
tree.c
tree.h
twofish.c
twofish.h
utils.c
version.h Bump minor versions for branching 4.1 2018-11-02 00:15:32 +01:00
wchar_filename.h
xga_font_data.c
xga_font_data.h
xtea.c
xtea.h