Skip to content

Commit 0a85029

Browse files
committed
fixed #1785 (fuzz)
1 parent 984787d commit 0a85029

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/isomedia/avc_ext.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -3373,8 +3373,10 @@ GF_Err gf_isom_oinf_read_entry(void *entry, GF_BitStream *bs)
33733373
op->output_layer_set_idx = gf_bs_read_u16(bs);
33743374
op->max_temporal_id = gf_bs_read_u8(bs);
33753375
op->layer_count = gf_bs_read_u8(bs);
3376-
if (op->layer_count > GF_ARRAY_LENGTH(op->layers_info))
3376+
if (op->layer_count > GF_ARRAY_LENGTH(op->layers_info)) {
3377+
gf_free(op);
33773378
return GF_NON_COMPLIANT_BITSTREAM;
3379+
}
33783380
for (j = 0; j < op->layer_count; j++) {
33793381
op->layers_info[j].ptl_idx = gf_bs_read_u8(bs);
33803382
op->layers_info[j].layer_id = gf_bs_read_int(bs, 6);

0 commit comments

Comments
 (0)