mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-05-01 06:13:08 +08:00
avformat/vividas: check if size is enough big in xor_block
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user