[FFmpeg-devel] [PATCH] Fix leak by dereferencing audio frame when side data causes whole frame skip

Matthew Wolenetz wolenetz at chromium.org
Tue May 7 00:42:51 CEST 2013


This patch fixes a memory leak in avcodec_decode_audio4() when
refcounted_frames are enabled and side data size causes a whole frame to be
skipped.

Please review to ensure it is not introducing use-after-free possibilities.

I believe that, along with d18341fb1121332056aecc00096159df16d01, issue
#2529 is fixed with this patch.
make fate passes and valgrind shows no remaining leaks for the sample
attached to issue #2529.

Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-leak-by-dereferencing-audio-frame-when-side-data.patch
Type: application/octet-stream
Size: 1017 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130506/eba91762/attachment.obj>


More information about the ffmpeg-devel mailing list