Browse Source

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

tags/n4.2
Paul B Mahol 7 years ago
parent
commit
e9909fe194
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/vividas.c

+ 2
- 1
libavformat/vividas.c View File

@@ -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;


Loading…
Cancel
Save