[Dev-luatex] tounicode.w: Stack overflow on Windows 7 (and one possible fix)

Mindaugas Piešina mindaugas.piesina at vtex.lt
Tue Sep 3 07:35:46 CEST 2013


Hello.

It's good if there is no need for multithreading or recursion.
More elegant solution would be something like that:

int *range_size = malloc(65537 * sizeof(int));
assert(range_size);
glyph_unicode_entry *gtab = malloc(65537 * sizeof(glyph_unicode_entry));
assert(gtab);
<...>
free(gtab);
free(range_size);

Regards, Mindaugas.

On 2013-09-03 01:30, Graham Douglas wrote:
> static int range_size[65537];
> static glyph _unicode_entry gtab[65537];
>
>



More information about the dev-luatex mailing list