From 1aa1151dbbf7fee68c32644ffaae13c039c02575 Mon Sep 17 00:00:00 2001 From: Stian Skjelstad Date: Fri, 27 Dec 2024 00:01:57 +0100 Subject: [PATCH] [MDL] In loader, the calculation of two buffer-sizes were missing parentheses, causing incorrect calculation. --- playgmd/gmdlmdl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playgmd/gmdlmdl.c b/playgmd/gmdlmdl.c index 6b21970b..21cf8fca 100644 --- a/playgmd/gmdlmdl.c +++ b/playgmd/gmdlmdl.c @@ -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);