Skip to content

Commit

Permalink
fixed #1785 (fuzz)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed May 10, 2021
1 parent 984787d commit 0a85029
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/isomedia/avc_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -3373,8 +3373,10 @@ GF_Err gf_isom_oinf_read_entry(void *entry, GF_BitStream *bs)
op->output_layer_set_idx = gf_bs_read_u16(bs);
op->max_temporal_id = gf_bs_read_u8(bs);
op->layer_count = gf_bs_read_u8(bs);
if (op->layer_count > GF_ARRAY_LENGTH(op->layers_info))
if (op->layer_count > GF_ARRAY_LENGTH(op->layers_info)) {
gf_free(op);
return GF_NON_COMPLIANT_BITSTREAM;
}
for (j = 0; j < op->layer_count; j++) {
op->layers_info[j].ptl_idx = gf_bs_read_u8(bs);
op->layers_info[j].layer_id = gf_bs_read_int(bs, 6);
Expand Down

0 comments on commit 0a85029

Please sign in to comment.