aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ulti_cb.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-06 22:01:51 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-12 06:00:14 +0200
commit44e0a31ac4330d5b64cd7cde05900046943a25b2 (patch)
treec5d05b87abee7d014a14a8e51575d6795117c033 /libavcodec/ulti_cb.h
parentd919c7165ae3c161da44ff91a938a0cc23f0ef85 (diff)
downloadffmpeg-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/ulti_cb.h')
0 files changed, 0 insertions, 0 deletions