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.