Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

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

Closed
MetLob opened this issue Jun 24, 2016 · 0 comments
Closed

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

MetLob opened this issue Jun 24, 2016 · 0 comments

Comments

@MetLob
Copy link
Contributor

MetLob commented Jun 24, 2016

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];

MetLob pushed a commit to MetLob/tinke that referenced this issue Feb 9, 2017
MetLob pushed a commit to MetLob/tinke that referenced this issue Oct 13, 2017
@pleonex pleonex closed this as completed Nov 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants