aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-12-14 20:33:39 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-01-03 18:09:56 +0100
commit63d5fa55fe1aad9eb64c91c41e11c581808085c4 (patch)
tree2f3d4ccdfd722db05f03f691ae0c7120742d4084 /libavformat
parentd344e45f19d8bd52b9150304b1ab78e4f5e99bef (diff)
downloadffmpeg-63d5fa55fe1aad9eb64c91c41e11c581808085c4.tar.gz
applehttp: Avoid reading uninitialized memory
Signed-off-by: Martin Storsjö <martin@martin.st> (cherry picked from commit c41b9842ceac42bedfd74a7ba2d02add82f818a9) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/applehttp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/applehttp.c b/libavformat/applehttp.c
index 1694096d9b..18b19d81eb 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;