[FFmpeg-cvslog] libavformat/rtpdec_asf: zero initialize the AVIOContext struct
Kacper Michajłow
git at videolan.org
Sat Aug 13 16:30:04 EEST 2016
ffmpeg | branch: release/3.0 | Kacper Michajłow <kasper93 at gmail.com> | Sat Jul 23 23:47:39 2016 +0200| [c5757266219c48bd4e3bbb382df2ff6048d19f26] | committer: Michael Niedermayer
libavformat/rtpdec_asf: zero initialize the AVIOContext struct
This fixes crash in avformat_open_input() when accessing
protocol_whitelist field.
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit e947b75b1c76ef6793209c2c445b8c224a28717a)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c5757266219c48bd4e3bbb382df2ff6048d19f26
---
libavformat/rtpdec_asf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/rtpdec_asf.c b/libavformat/rtpdec_asf.c
index 2b1ddf1..1c88580 100644
--- a/libavformat/rtpdec_asf.c
+++ b/libavformat/rtpdec_asf.c
@@ -101,7 +101,7 @@ int ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p)
{
int ret = 0;
if (av_strstart(p, "pgmpu:data:application/vnd.ms.wms-hdr.asfv1;base64,", &p)) {
- AVIOContext pb;
+ AVIOContext pb = { 0 };
RTSPState *rt = s->priv_data;
AVDictionary *opts = NULL;
int len = strlen(p) * 6 / 8;
More information about the ffmpeg-cvslog
mailing list