Commit a7984f0a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

HLS: check strtoull parsing

Else the if(end) were meaningless
parent 2c940ab8
......@@ -544,11 +544,11 @@ static int string_to_IV(char *string_hexa, uint8_t iv[AES_BLOCK_SIZE])
if (end)
return VLC_EGENERIC;
} else {
iv_lo = strtoull(&string_hexa[len-16], NULL, 16);
iv_lo = strtoull(&string_hexa[len-16], &end, 16);
if (end)
return VLC_EGENERIC;
string_hexa[len-16] = '\0';
iv_hi = strtoull(string_hexa, NULL, 16);
iv_hi = strtoull(string_hexa, &end, 16);
if (end)
return VLC_EGENERIC;
}
......
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