1 Dec
2023
1 Dec
'23
11:42 a.m.
Matteo Bruni (@Mystral) commented about dlls/d3dx9_36/font.c:
return D3D_OK;
count = last - first + 1; - indices = heap_alloc(count * sizeof(*indices)); + indices = malloc(count * sizeof(*indices)); if (!indices) return E_OUTOFMEMORY;
- chars = heap_alloc(count * sizeof(*chars)); + chars = malloc(count * sizeof(*chars));
Using calloc for overflow checking seems like a good idea for both of those. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4539#note_54561