Skip to content

Commit

Permalink
reframe_mpgvid: add size check (fixes #2651)
Browse files Browse the repository at this point in the history
  • Loading branch information
aureliendavid committed Oct 23, 2023
1 parent fc9e290 commit db74835
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/filters/reframe_mpgvid.c
Original file line number Diff line number Diff line change
Expand Up @@ -1081,6 +1081,11 @@ GF_Err mpgviddmx_process(GF_Filter *filter)
//needs adjustement
if (bytes_from_store) {
size += bytes_from_store + hdr_offset;
if (size > remain) {
e = GF_NON_COMPLIANT_BITSTREAM;
GF_LOG(GF_LOG_ERROR, GF_LOG_MEDIA, ("[MPGVid] packet too large to process (size %llu remain %d)\n", size, remain ));
break;
}
}

if ((e == GF_EOS) && !ctx->input_is_au_end) {
Expand Down

0 comments on commit db74835

Please sign in to comment.