[FFmpeg-cvslog] avcodec/h264: make the first field of H264Context an AVClass
Michael Niedermayer
git at videolan.org
Tue Dec 30 16:12:41 CET 2014
ffmpeg | branch: release/2.1 | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 17 01:31:48 2014 +0100| [ac499d8142f38f0f82aa06a4cf425498ee19c32f] | committer: Michael Niedermayer
avcodec/h264: make the first field of H264Context an AVClass
Fixes use of freed memory
Fixes: asan_heap-uaf_3660f67_757_cov_1257014655_Hi422FR1_SONY_A.jsv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit f3b5b139ad853b6f69c6a0b036815a60e7b3f261)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ac499d8142f38f0f82aa06a4cf425498ee19c32f
---
libavcodec/h264.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index 872d09d..bc7db9f 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -284,6 +284,7 @@ typedef struct MMCO {
* H264Context
*/
typedef struct H264Context {
+ AVClass *av_class;
AVCodecContext *avctx;
VideoDSPContext vdsp;
H264DSPContext h264dsp;
More information about the ffmpeg-cvslog
mailing list