demux_ts: add memory access checks
commit29f20dc812f49e6b4648a9c045a35bbfa0f7a961
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 10 Jul 2010 16:48:59 +0000 (10 16:48 +0000)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Tue, 2 Nov 2010 02:14:43 +0000 (2 04:14 +0200)
treebbbcf4c4b8ea250d6b59d2173c711521f25b1670
parent5c53ce6bae5575fc708798221dba9e856a8caa8f
demux_ts: add memory access checks

Add packet->len checks to avoid out-of-bounds reads and negative
es->size values.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31671 b3059339-0415-0410-9bf9-f77b7e298cf2
libmpdemux/demux_ts.c