Skip to content

MessageUnpacker#unpackValue can cause NegativeArraySizeException for large maps #1042

Open

Description

@Marcono1234

Version

org.msgpack:msgpack-core:0.9.12

Description

Related to #657

The MessageUnpacker methods unpackValue() and unpackValue(Variable) can throw NegativeArraySizeException for large maps because they try to create an array with length size * 2, but that expression can overflow causing the length to become negative.

Expected behavior:

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