asfdemux: careful to avoid crash on bogus data
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 26 Oct 2009 20:31:19 +0000 (17:31 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 26 Oct 2009 20:31:19 +0000 (17:31 -0300)
commit59f6c82c32b377c2ecc78b67cdfedd4e4d7d4096
treea53e417afc367eff4309a32117181423c33663de
parent5beecd777ffb8ed28096431e06eb5c9dd8116271
asfdemux: careful to avoid crash on bogus data

When receiving bogus data, we have to avoid subtracting a value
larger than 'size' from 'size' variable, resulting in a wrap
that would make 'size' a really large bogus value.

Fixes #599333
gst/asfdemux/asfpacket.c