[FFmpeg-cvslog] applehttp: Avoid reading uninitialized memory

Martin Storsjö git at videolan.org
Thu Dec 15 00:19:52 CET 2011


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Dec 14 20:33:39 2011 +0200| [c41b9842ceac42bedfd74a7ba2d02add82f818a9] | committer: Martin Storsjö

applehttp: Avoid reading uninitialized memory

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c41b9842ceac42bedfd74a7ba2d02add82f818a9
---

 libavformat/applehttp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/applehttp.c b/libavformat/applehttp.c
index 7cc0499..19f2b20 100644
--- a/libavformat/applehttp.c
+++ b/libavformat/applehttp.c
@@ -204,7 +204,7 @@ static int parse_playlist(AppleHTTPContext *c, const char *url,
     enum KeyType key_type = KEY_NONE;
     uint8_t iv[16] = "";
     int has_iv = 0;
-    char key[MAX_URL_SIZE];
+    char key[MAX_URL_SIZE] = "";
     char line[1024];
     const char *ptr;
     int close_in = 0;



More information about the ffmpeg-cvslog mailing list