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

pull/304/head^2
Paul B Mahol 6 years ago
parent 14c2f7f652
commit e9909fe194
  1. 3
      libavformat/vividas.c

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