Skip to content

Commit

Permalink
[MDL] In loader, the calculation of two buffer-sizes were missing par…
Browse files Browse the repository at this point in the history
…entheses, causing incorrect calculation.
  • Loading branch information
mywave82 committed Dec 26, 2024
1 parent 72139d8 commit 1aa1151
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playgmd/gmdlmdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ OCP_INTERNAL int LoadMDL (struct cpifaceSessionAPI_t *cpifaceSession, struct gmd
return errFileRead;
}

trackends=malloc(sizeof(uint8_t *)*ntracks+1);
trackptrs=malloc(sizeof(uint8_t *)*ntracks+1);
trackends=malloc(sizeof(uint8_t *)*(ntracks+1));
trackptrs=malloc(sizeof(uint8_t *)*(ntracks+1));
trackbuf=malloc(sizeof(uint8_t)*(blklen-2-2*ntracks));

patdata=malloc(sizeof(uint8_t)*m->channum*256*6);
Expand Down

0 comments on commit 1aa1151

Please sign in to comment.