Commit f0f2babc authored by Philippe Saint-Pierre's avatar Philippe Saint-Pierre Committed by Carl Eugen Hoyos

Fix possible infinite loop decoding als.

Reviewed-by: Thilo Borgmann
parent 4452d58c
......@@ -1012,7 +1012,7 @@ static void zero_remaining(unsigned int b, unsigned int b_max,
unsigned int count = 0;
while (b < b_max)
count += div_blocks[b];
count += div_blocks[b++];
if (count)
memset(buf, 0, sizeof(*buf) * count);
......
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