[vlc-commits] demux: asf: check subpayload length
Francois Cartegnie
git at videolan.org
Wed Jan 24 16:28:27 CET 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan 24 13:23:33 2018 +0100| [757e099e859a00f257daac7cb0c3ad7c7af228cb] | committer: Francois Cartegnie
demux: asf: check subpayload length
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=757e099e859a00f257daac7cb0c3ad7c7af228cb
---
modules/demux/asf/asfpacket.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/demux/asf/asfpacket.c b/modules/demux/asf/asfpacket.c
index 494e282eff..ed902ee701 100644
--- a/modules/demux/asf/asfpacket.c
+++ b/modules/demux/asf/asfpacket.c
@@ -349,6 +349,8 @@ static int DemuxPayload(asf_packet_sys_t *p_packetsys, asf_packet_t *pkt, int i_
{
i_sub_payload_data_length = pkt->p_peek[pkt->i_skip++];
i_payload_data_length--;
+ if( i_sub_payload_data_length > i_payload_data_length )
+ goto skip;
}
SkipBytes( p_demux->s, pkt->i_skip );
More information about the vlc-commits
mailing list