diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-05-06 22:01:51 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-05-12 06:00:14 +0200 |
commit | 44e0a31ac4330d5b64cd7cde05900046943a25b2 (patch) | |
tree | c5d05b87abee7d014a14a8e51575d6795117c033 /libavcodec/rdft.h | |
parent | d919c7165ae3c161da44ff91a938a0cc23f0ef85 (diff) | |
download | ffmpeg-44e0a31ac4330d5b64cd7cde05900046943a25b2.tar.gz |
avcodec/vorbisenc: Don't free uninitialized pointers
The Vorbis encoder allocates several arrays destined to contain pointers
to separately allocated arrays; yet these arrays are allocated without
initializing them: They are uninitialized until their final values
are stored in them; so if allocating one of the earlier subarrays fails,
all of the remaining pointers to subarrays are still uninitialized.
But they are used for freeing, resulting in crashes.
Fix this by zero-initializing the arrays with subarrays.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/rdft.h')
0 files changed, 0 insertions, 0 deletions