Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML parser does not parse hex expressions correctly #63

Closed
koczkatamas opened this issue Mar 18, 2018 · 1 comment · Fixed by #166
Closed

YAML parser does not parse hex expressions correctly #63

koczkatamas opened this issue Mar 18, 2018 · 1 comment · Fixed by #166

Comments

@koczkatamas
Copy link
Member

If we use size: 0x30150-0x30010 then it becomes this._io.readBytes(3304172224528);.

The problem is probably the YAML parser thinks the expression is a hex number and parse it incorrectly. 3304172224528 = 0x30150030010 which is not 0x30150-0x30010 of course!

@GreyCat
Copy link
Member

GreyCat commented Apr 26, 2019

Another finding: 0b10101010 gets parsed as 0 by old YAML parser.

Fortunately, new parser introduced in https://ide.kaitai.io/devel/ works properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants