Commit 882b1c34 authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Jean-Baptiste Kempf

http_live: Fix off-by-one.

(cherry picked from commit ea87467e)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 8856ef80
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment