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 Merge commit '4cf84e254ae75b524e1cacae499a97d7cc9e5906' 2018-02-11 23:08:48 -03:00
arm Merge commit '3a7b4ae62c798edbd82bcd8fef863c74ed2acd4a' 2018-03-30 15:48:17 -03:00
avr32
bfin
mips avutil/mips: [loongson] simplify macro TRANSPOSE_4H and TRANSPOSE_8B 2018-09-09 12:01:07 +02:00
ppc Merge commit '4cf84e254ae75b524e1cacae499a97d7cc9e5906' 2018-02-11 23:08:48 -03:00
sh4
tests avutil/tests/parseutils: add some big duration tests 2018-10-07 20:26:29 +02:00
tomi
x86 x86/float_dsp: add ff_vector_dmul_{sse2,avx} 2018-09-14 12:54:42 -03:00
.gitignore
Makefile libavutil/encryption_info: Add unit tests. 2018-06-27 13:43:39 +02:00
adler32.c
adler32.h
aes.c
aes.h
aes_ctr.c avutil/aes_ctr: Add method to set 16-byte IV. 2018-01-23 21:48:31 +01:00
aes_ctr.h avutil/aes_ctr: Add method to set 16-byte IV. 2018-01-23 21:48:31 +01:00
aes_internal.h
attributes.h Merge commit '8e2346154e6d58b733fd20326ce706f82fd91b3e' 2017-10-21 14:25:55 -03:00
audio_fifo.c
audio_fifo.h
avassert.h Fix typos 2018-09-14 21:36:21 +02:00
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 avfilter/drawutils: add support for full range 2018-05-03 21:43:57 +02:00
common.h avutil/common: Fix undefined behavior in av_clip_uintp2_c() 2018-06-15 21:52:29 +02:00
cpu.c avutil: add AVX-512 flags 2017-12-24 22:02:41 +01:00
cpu.h avutil: add AVX-512 flags 2017-12-24 22:02:41 +01:00
cpu_internal.h Merge commit '4cf84e254ae75b524e1cacae499a97d7cc9e5906' 2018-02-11 23:08:48 -03:00
crc.c crc: add AV_CRC_8_SBC as a 8 bits CRC with polynomial 0x1D 2018-03-07 22:26:53 +01:00
crc.h crc: add AV_CRC_8_SBC as a 8 bits CRC with polynomial 0x1D 2018-03-07 22:26:53 +01:00
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 avutil/encryption_info: Fix documentation problem. 2018-06-27 13:43:38 +02:00
error.c
error.h
eval.c Merge commit '97cfe1d8bd1968143e2ba9aa46ebe9504a835e24' 2017-11-01 20:05:09 -03:00
eval.h
ffmath.h
fifo.c
fifo.h
file.c avutil/file: allow mapping 0 byte files with av_file_map 2018-09-09 21:21:42 +02:00
file.h avutil/file: allow mapping 0 byte files with av_file_map 2018-09-09 21:21:42 +02:00
file_open.c Merge commit 'e41daa62465036ad36ad0bd14e4936e848d7f07e' 2017-11-11 10:22:11 -03:00
fixed_dsp.c
fixed_dsp.h
float_dsp.c avutil: add float_dsp.vector_dmul 2018-09-12 19:15:09 +02:00
float_dsp.h avutil: add float_dsp.vector_dmul 2018-09-12 19:15:09 +02:00
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 avutil/crypto: change length parameter to size_t on the remaining modules 2018-02-15 11:21:28 -03:00
hash.h avutil/crypto: change length parameter to size_t on the remaining modules 2018-02-15 11:21:28 -03:00
hmac.c
hmac.h avutil/hmac: remove gap in AVHMACType enum values 2017-10-22 19:47:05 -03:00
hwcontext.c hwcontext_internal: add ff_hwframe_map_replace 2018-06-21 16:34:06 +01:00
hwcontext.h hwcontext: Fix documentation for av_hwdevice_ctx_alloc() 2018-02-04 13:47:19 +00:00
hwcontext_cuda.c avutil/hwcontext_cuda: fix YUV420P cuda_get_buffer 2018-05-15 22:18:58 +02:00
hwcontext_cuda.h avutil/hwcontext_cuda: add CUstream in cuda hwctx 2018-05-10 00:34:22 +02:00
hwcontext_cuda_internal.h
hwcontext_d3d11va.c avutil/hwcontext_d3d11va: fix type arguments passed to IDXGIAdapter2_GetDesc() 2018-07-25 15:22:30 -03:00
hwcontext_d3d11va.h hwcontext_d3d11va: add missing stdint.h include 2017-11-17 23:27:43 +01:00
hwcontext_drm.c
hwcontext_drm.h hwcontext_drm: Clarify value for unknown format modifiers 2018-03-22 23:18:53 +00:00
hwcontext_dxva2.c Merge commit '8f144d9e3d5cb2ca92e5bdf7cc9f72effa1bd2ce' 2018-04-13 20:59:12 -03:00
hwcontext_dxva2.h
hwcontext_internal.h hwcontext_internal: add ff_hwframe_map_replace 2018-06-21 16:34:06 +01:00
hwcontext_mediacodec.c lavu/hwcontext: add AV_HWDEVICE_TYPE_MEDIACODEC 2017-12-16 00:52:00 +01:00
hwcontext_mediacodec.h lavu/hwcontext: add AV_HWDEVICE_TYPE_MEDIACODEC 2017-12-16 00:52:00 +01:00
hwcontext_opencl.c hwcontext_opencl: remove an unused variable 2018-06-29 05:23:49 +08:00
hwcontext_opencl.h lavu/hwcontext_opencl.h: fix build on macOS 2017-11-28 00:23:42 -06:00
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: Improve format mapping 2018-09-23 14:42:34 +01:00
hwcontext_vaapi.h
hwcontext_vdpau.c hwcontext_vdpau: implement av_hwdevice_get_hwframe_constraints() 2018-01-15 12:37:30 +01:00
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 avutil/pixdesc: deprecate AV_PIX_FMT_FLAG_PSEUDOPAL 2018-04-03 17:53:00 +02:00
intfloat.h
intmath.c
intmath.h
intreadwrite.h Merge commit '85e10c0a9321bfe0d2afe0f3983ab6a8df6e3fba' 2018-01-25 22:45:45 +00:00
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 avutil/log: Replace the number by macro for bprint init 2018-06-17 09:59:33 +08:00
log.h Merge commit '35cf146a33ce41a1adb6c9bd5a0827eacb1b6bfc' 2017-10-23 18:20:07 -03:00
log2_tab.c
lzo.c
lzo.h
macros.h
mastering_display_metadata.c
mastering_display_metadata.h avutil/mastering_display_metadata: fix copyright header wrongly formated as doxy 2018-01-11 11:35:51 -03:00
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 avutil/crypto: change length parameter to size_t on the remaining modules 2018-02-15 11:21:28 -03:00
murmur3.h avutil/crypto: change length parameter to size_t on the remaining modules 2018-02-15 11:21:28 -03:00
opt.c avutil/opt: check for minimum and maximum values when setting AV_OPT_TYPE_DURATION fields 2018-10-07 20:26:29 +02:00
opt.h lavu/opt: add AV_OPT_FLAG_DEPRECATED 2018-04-26 19:50:29 +02:00
parseutils.c avutil/parseutils: fix some overflows in duration calculations 2018-10-07 20:26:29 +02:00
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 lavutil/pixelutils: add sad_32x32 in pixelutils API. 2018-07-31 19:09:35 +08:00
pixelutils.h
pixfmt.h libavutil: Adds gray floating-point pixel formats. 2018-08-11 02:37:42 +02:00
qsort.h
random_seed.c random_seed: use bcrypt instead of the old wincrypt API 2018-04-19 10:54:26 +03:00
random_seed.h
rational.c
rational.h
rc4.c
rc4.h
replaygain.h
reverse.c
reverse.h
ripemd.c avutil/crypto: change length parameter to size_t on the remaining modules 2018-02-15 11:21:28 -03:00
ripemd.h avutil/crypto: change length parameter to size_t on the remaining modules 2018-02-15 11:21:28 -03:00
samplefmt.c
samplefmt.h
sha.c
sha.h
sha512.c
sha512.h
slicethread.c w32pthreads: always use Vista+ API, drop XP support 2017-12-26 02:49:48 +01:00
slicethread.h
softfloat.h avutil/softfloat: Add FLOAT_MIN 2017-11-05 22:13:16 +01:00
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 Merge commit '99e9697e3a12ab4a6638a36b95edafd6a98f9eaa' 2017-11-29 21:06:49 -03:00
tablegen.h
tea.c
tea.h
thread.h lavc: replace and deprecate the lock manager 2017-12-26 02:50:00 +01:00
threadmessage.c lavu/threadmessage: add av_thread_message_queue_nb_elems() 2018-04-26 19:41:19 +02:00
threadmessage.h lavu/threadmessage: add av_thread_message_queue_nb_elems() 2018-04-26 19:41:19 +02:00
time.c
time.h
time_internal.h
timecode.c avutil/timecode: fix starting frame number for 59.94 fps 2018-02-23 01:53:34 +01:00
timecode.h
timer.h Merge commit 'b46900914a1f25ce8dbf49d7c53766ff1f18b60f' 2017-11-11 16:42:27 -03:00
timestamp.h
tree.c
tree.h
twofish.c
twofish.h
utils.c lavc: drop VDA 2017-10-23 11:56:15 +02:00
version.h Bump minor versions for branching 4.1 2018-11-02 00:15:32 +01:00
wchar_filename.h Merge commit 'e41daa62465036ad36ad0bd14e4936e848d7f07e' 2017-11-11 10:22:11 -03:00
xga_font_data.c
xga_font_data.h Merge commit 'abf1c058d1bd0ed1b820ea5e501a4484756f00b0' 2017-11-11 11:29:16 -03:00
xtea.c
xtea.h