general: suppress some CodeQL warnings

CODABLOCKF: tidy some comments
This commit is contained in:
gitlost 2025-02-23 19:48:55 +00:00
parent 174bbf06a8
commit c11ab5528d
6 changed files with 16 additions and 17 deletions

View file

@ -1904,7 +1904,7 @@ static int dm_ecc200(struct zint_symbol *symbol, struct zint_seg segs[], const i
const int NC = W - 2 * (W / FW);
const int NR = H - 2 * (H / FH);
int x, y, *places;
if (!(places = (int *) calloc(NC * NR, sizeof(int)))) {
if (!(places = (int *) calloc((size_t) NC * (size_t) NR, sizeof(int)))) {
return errtxt(ZINT_ERROR_MEMORY, symbol, 718, "Insufficient memory for placement array");
}
dm_placement(places, NR, NC);