镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Unexpected UTF-8 encoder state #371

Description

@Romanow

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions