Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed #1786 (fuzz)
  • Loading branch information
jeanlf committed May 10, 2021
1 parent 0a85029 commit ec64c7b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/isomedia/box_code_meta.c
Expand Up @@ -566,10 +566,13 @@ GF_Err infe_box_read(GF_Box *s, GF_BitStream *bs)
ptr->content_type = (char*)gf_malloc(sizeof(char)*string_len);
if (!ptr->content_type) return GF_OUT_OF_MEM;
memcpy(ptr->content_type, buf+string_start, string_len);
} else {
} else if (!ptr->content_encoding) {
ptr->content_encoding = (char*)gf_malloc(sizeof(char)*string_len);
if (!ptr->content_encoding) return GF_OUT_OF_MEM;
memcpy(ptr->content_encoding, buf+string_start, string_len);
} else {
//we could throw an error but we silently accept this infe
break;
}
string_start += string_len;
string_len = 0;
Expand Down

0 comments on commit ec64c7b

Please sign in to comment.