[vlc-commits] http_live: Fix off-by-one.

Rémi Duraffort git at videolan.org
Thu Aug 30 22:03:01 CEST 2012


vlc/vlc-2.0 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jun 28 20:16:21 2012 +0200| [882b1c348dd7c6fb7027e6bca6ad64644bee1493] | committer: Jean-Baptiste Kempf

http_live: Fix off-by-one.
(cherry picked from commit ea87467e04fb47498f13e15f1e4ce6095129132f)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=882b1c348dd7c6fb7027e6bca6ad64644bee1493
---

 modules/stream_filter/httplive.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 97d1adf..f22e5af 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -530,7 +530,7 @@ static int string_to_IV(char *string_hexa, uint8_t iv[AES_BLOCK_SIZE])
             return VLC_EGENERIC;
     }
 
-    for (int i = 8; i ; --i) {
+    for (int i = 7; i >= 0 ; --i) {
         iv[  i] = iv_hi & 0xff;
         iv[8+i] = iv_lo & 0xff;
         iv_hi >>= 8;



More information about the vlc-commits mailing list