We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ec4148 commit 7f9ec55Copy full SHA for 7f9ec55
libavformat/asfdec_f.c
@@ -749,13 +749,15 @@ static int asf_read_marker(AVFormatContext *s, int64_t size)
749
count = avio_rl32(pb); // markers count
750
avio_rl16(pb); // reserved 2 bytes
751
name_len = avio_rl16(pb); // name length
752
- for (i = 0; i < name_len; i++)
753
- avio_r8(pb); // skip the name
+ avio_skip(pb, name_len);
754
755
for (i = 0; i < count; i++) {
756
int64_t pres_time;
757
int name_len;
758
+ if (avio_feof(pb))
759
+ return AVERROR_INVALIDDATA;
760
+
761
avio_rl64(pb); // offset, 8 bytes
762
pres_time = avio_rl64(pb); // presentation time
763
pres_time -= asf->hdr.preroll * 10000;
0 commit comments