diff options
author | Martin Storsjö <martin@martin.st> | 2011-12-14 20:33:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-03 18:09:56 +0100 |
commit | 63d5fa55fe1aad9eb64c91c41e11c581808085c4 (patch) | |
tree | 2f3d4ccdfd722db05f03f691ae0c7120742d4084 /libavformat | |
parent | d344e45f19d8bd52b9150304b1ab78e4f5e99bef (diff) | |
download | ffmpeg-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.c | 2 |
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; |