Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed #1587
  • Loading branch information
jeanlf committed Sep 7, 2020
1 parent 362fc48 commit 388ecce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/isomedia/box_code_base.c
Expand Up @@ -580,6 +580,10 @@ GF_Err url_box_read(GF_Box *s, GF_BitStream *bs)
ptr->location = (char*)gf_malloc((u32) ptr->size);
if (! ptr->location) return GF_OUT_OF_MEM;
gf_bs_read_data(bs, ptr->location, (u32)ptr->size);
if (ptr->location[ptr->size-1]) {
GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("[iso file] url box location is not 0-terminated\n" ));
return GF_ISOM_INVALID_FILE;
}
}
return GF_OK;
}
Expand Down

0 comments on commit 388ecce

Please sign in to comment.