Skip to content

Commit 7751077

Browse files
committed
fixed #2255
1 parent 4c77303 commit 7751077

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: src/isomedia/box_code_base.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -12886,11 +12886,12 @@ GF_Err xtra_box_read(GF_Box *s, GF_BitStream *bs)
1288612886
prop_type = gf_bs_read_u16(bs);
1288712887
prop_size -= 6;
1288812888
ISOM_DECREASE_SIZE_NO_ERR(ptr, prop_size)
12889-
//add 2 extra bytes for UTF16 case string dump
12890-
data2 = gf_malloc(sizeof(char) * (prop_size+2));
12889+
//add 3 extra bytes for UTF16 case string dump (3 because we need 0-aligned short value)
12890+
data2 = gf_malloc(sizeof(char) * (prop_size+3));
1289112891
gf_bs_read_data(bs, data2, prop_size);
1289212892
data2[prop_size] = 0;
1289312893
data2[prop_size+1] = 0;
12894+
data2[prop_size+2] = 0;
1289412895
tag_size-=prop_size;
1289512896
} else {
1289612897
prop_size = 0;

0 commit comments

Comments
 (0)