diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-03 15:39:35 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-03 22:26:51 +0200 |
commit | a5b2f06b0c69221e375edd918a335c68b33d5667 (patch) | |
tree | 468b6afa5928d4cfa332e6714e19f41f10e0a5bf /libavcodec/dvaudiodec.c | |
parent | da8c86dd8be244100da226a11b416c20d0c914d6 (diff) | |
download | ffmpeg-a5b2f06b0c69221e375edd918a335c68b33d5667.tar.gz |
avcodec/mjpegdec: Fix leak in case ICC array allocations fail partially
If only one of the two arrays used for the ICC profile could be
successfully allocated, it might be overwritten and leak when
the next ICC entry is encountered. Fix this by using a common struct,
so that one has only one array to allocate.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/dvaudiodec.c')
0 files changed, 0 insertions, 0 deletions