We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 124eb20 commit 96f24d1Copy full SHA for 96f24d1
libavformat/rl2.c
@@ -170,12 +170,21 @@ static av_cold int rl2_read_header(AVFormatContext *s)
170
}
171
172
/** read offset and size tables */
173
- for(i=0; i < frame_count;i++)
+ for(i=0; i < frame_count;i++) {
174
+ if (avio_feof(pb))
175
+ return AVERROR_INVALIDDATA;
176
chunk_size[i] = avio_rl32(pb);
177
+ }
178
179
180
181
chunk_offset[i] = avio_rl32(pb);
182
183
184
185
186
audio_size[i] = avio_rl32(pb) & 0xFFFF;
187
188
189
/** build the sample index */
190
for(i=0;i<frame_count;i++){
0 commit comments