diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-28 19:38:01 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-04 18:01:01 +0200 |
commit | 63b31565584e7aaef9c43ca9c0c7a44c6cbc9e97 (patch) | |
tree | 4d91dcb8e61091b104973f5b269b2fd2b4fbeb16 /libavcodec/version.c | |
parent | e95fdf7660a4a5045eece116d8915be485aef6c1 (diff) | |
download | ffmpeg-63b31565584e7aaef9c43ca9c0c7a44c6cbc9e97.tar.gz |
avformat/aviobuf: Don't use NULL as src for memcpy
This might happen in avio_write() if size == 0
when the direct codepath is taken. It is undefined behaviour
according to the spec although it happens to work in practice.
Fixes the webm-webvtt-remux FATE-test under UBSan.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/version.c')
0 files changed, 0 insertions, 0 deletions