Huw Davies (@huw) commented about dlls/ntdll/unix/system.c:
+ performance_cores = calloc(16, sizeof(ULONG)); + if (!performance_cores) goto done; + performance_cores_capacity = 16; + + while (!feof(fpcore_list) && op == ',') + { + if (!fscanf(fpcore_list, "%u %c ", &beg, &op)) break; + if (op == '-') fscanf(fpcore_list, "%u %c ", &end, &op); + else end = beg; + + for(i = beg; i <= end; i++) + { + if (i / 32 > performance_cores_capacity) + { + p = realloc(performance_cores, performance_cores_capacity * 2 * sizeof(ULONG)); + if (!p) break; At this point one might as well return from the function.
```suggestion:-0+0 if (!p) goto done; ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2710#note_38529