Skip to content

Commit

Permalink
fixed #2365
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Jan 4, 2023
1 parent 3a2458a commit 4ade981
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/laser/lsr_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* GPAC - Multimedia Framework C SDK
*
* Authors: Jean Le Feuvre
* Copyright (c) Telecom ParisTech 2005-2022
* Copyright (c) Telecom ParisTech 2005-2023
* All rights reserved
*
* This file is part of GPAC / LASeR codec sub-project
Expand Down Expand Up @@ -1539,8 +1539,8 @@ static void lsr_read_rare_full(GF_LASeRCodec *lsr, GF_Node *n)
} else {
da->type=SVG_STROKEDASHARRAY_ARRAY;
da->array.count = lsr_read_vluimsbf5(lsr, "len");
da->array.vals = (Fixed*)gf_malloc(sizeof(Fixed)*da->array.count);
da->array.units = (u8*)gf_malloc(sizeof(u8)*da->array.count);
da->array.vals = (Fixed*)gf_realloc(da->array.vals, sizeof(Fixed)*da->array.count);
da->array.units = (u8*)gf_realloc(da->array.units, sizeof(u8)*da->array.count);
if (!da->array.vals || !da->array.units) {
lsr->last_error = GF_OUT_OF_MEM;
return;
Expand Down

0 comments on commit 4ade981

Please sign in to comment.