diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-03-30 23:20:49 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-03-31 14:37:05 +0200 |
commit | 84ac35ecb8a53bf313b468b5a9f1b0617f2a3de2 (patch) | |
tree | 6c927803b50f04111f793ce7e17f845921c1a618 /tests/ref/vsynth/vsynth3-mpeg4-error | |
parent | e5d6af7b35d97f5c1252ecf8bd61f3295909fb6c (diff) | |
download | ffmpeg-84ac35ecb8a53bf313b468b5a9f1b0617f2a3de2.tar.gz |
avcodec/mjpegenc: Fix segfault when freeing incomplete context
When allocating the MJpegContext fails (or if the dimensions run afoul
of the 65500x65500 limit), an attempt to free a subbuffer of said
context leads to a segfault in ff_mjpeg_encode_close().
Seems to be a regression since 467d9e27e0cb2bf74f41dc832f2f8d191ba58ec9.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tests/ref/vsynth/vsynth3-mpeg4-error')
0 files changed, 0 insertions, 0 deletions