提交 e9909fe1 编写于 作者: P Paul B Mahol

avformat/vividas: check if size is enough big in xor_block

上级 14c2f7f6
......@@ -129,11 +129,12 @@ static void xor_block(void *p1, void *p2, unsigned size, int key, unsigned *key_
size >>= 2;
while (size--) {
while (size > 0) {
*d2 = *d1 ^ k;
k += key;
d1++;
d2++;
size--;
}
*key_ptr = k;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册