Skip to content

Unexpected UTF-8 encoder state #371

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

Closed
Romanow opened this issue Jun 20, 2016 · 2 comments
Closed

Unexpected UTF-8 encoder state #371

Romanow opened this issue Jun 20, 2016 · 2 comments

Comments

@Romanow
Copy link

Romanow commented Jun 20, 2016

In org.msgpack:jackson-dataformat-msgpack:0.8.7 method MessagePacker::packString throw IllegalArgumentException("Unexpected UTF-8 encoder state") (line number 560).
In happens when string to encode less 2^16 and encoded string is greater then 2^16. In condition written >= (1 << 32) variable written has type int and condition 1 << 32 evaluates to 1 because 1 is long and there are type overflow.

@komamitsu
Copy link
Member

@Romanow Sorry for my late reply. Could you show me a reproducible code?

@frsyuki
Copy link
Member

frsyuki commented Jul 20, 2016

#375 fixes this issue.

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

No branches or pull requests

3 participants