Project

General

Profile

Bug #443 ยป 0092-Fix-init_nls-grouping-leak.patch

Marko Lindqvist, 05/22/2024 01:08 AM

View differences:

utility/shared.c
if (lc->grouping[0] == '\0') {
/* This actually indicates no grouping at all. */
char *m = malloc(sizeof(char));
char *m = fc_malloc(sizeof(char));
free(grouping);
*m = CHAR_MAX;
grouping = m;
} else {
size_t len;
for (len = 0;
lc->grouping[len] != '\0' && lc->grouping[len] != CHAR_MAX; len++) {
/* Nothing */
    (1-1/1)