swfdec: do better validation of tag length
authorJustin Ruggles <justin.ruggles@gmail.com>
Mon, 10 Dec 2012 17:44:09 +0000 (12:44 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Tue, 11 Dec 2012 14:36:26 +0000 (09:36 -0500)
commite70c5b034c4787377e82cab2d5565486baec0c2a
tree7a3d67b1f5dd4adc36bc874a1a6b331d9e5c033a
parent02823f6d7188260dabb10c64d6dd74331e7772e0
swfdec: do better validation of tag length

Avoids trying to read a packet with 0 or negative size.
Avoids a potential infinite loop due to seeking backwards.

Partially based on a patch by Michael Niedermayer.
libavformat/swfdec.c