Revision b086d4ff libavformat/asf.c

View differences:

libavformat/asf.c
601 601
                assert(asf->packet_replic_size >= 8);
602 602
                // it should be always at least 8 bytes - FIXME validate
603 603
                asf->packet_obj_size = get_le32(pb);
604
                if(asf->packet_obj_size >= (1<<24) || asf->packet_obj_size <= 0){
605
                    av_log(s, AV_LOG_ERROR, "packet_obj_size invalid\n");
606
                    continue;
607
                }
604 608
                asf->packet_frag_timestamp = get_le32(pb); // timestamp
605 609
                if (asf->packet_replic_size > 8)
606 610
                    url_fskip(pb, asf->packet_replic_size - 8);

Also available in: Unified diff