aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-01-23 17:08:27 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-05-20 00:52:54 +0200
commit7f2ab227e0382736126da9ab0704fcdc76b4b664 (patch)
tree6d20cc7b469e79d7348769a791a67452d1f881b3 /libavformat/utils.c
parent703473ec04311016d2a1636ae9a91d2a1234eb91 (diff)
downloadffmpeg-7f2ab227e0382736126da9ab0704fcdc76b4b664.tar.gz
avformat/matroskaenc: Check for reformatting errors
This is needed especially for AV1: If a reformatting error happens (e.g. if the length field of an OBU contained in the current packet indicates that said OBU extends beyond the current packet), the data pointer is still NULL, yet the size is unchanged, so that writing the data leads to a segmentation fault. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit 58428bef4b2c053f47dce35157fb96833ba8efea)
Diffstat (limited to 'libavformat/utils.c')
0 files changed, 0 insertions, 0 deletions