pleonex/tinke

Invalid char_code length on charmap type = 1 (CMAP section)

MetLob opened this issue · 0 comments

For charmap type = 1 (CMAP section of NFTR) the char_code array length gets by wrong calculation:

line 146: type1.char_code = new ushort[(pamc.block_size - 0x14 - 0x02) / 2];

In accordance with N**RO-SDK its must have value by next formula:

type1.char_code = new ushort[pamc.last_char - pamc.first_char + 1];