GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — OOM exception for invalid msgpack messages · Issue #498 · msgpack/msgpack-java

OOM exception for invalid msgpack messages #498

New issue
Copy link
New issue
Copy link
Closed
#500
Closed
OOM exception for invalid msgpack messages#498
#500
Copy link
Assignees
komamitsu

Description

@ponnur
ponnur
opened on May 9, 2019
Issue body actions

Getting "java.lang.OutOfMemoryError: Java heap space" exception while reading from invalid message pack. We get this error when the message pack array size is invalid. Expecting an exception like "no more data" instead of OOM in these scenarios.

val msgpackMapper = new ObjectMapper(new MessagePackFactory)
msgpackMapper.registerModule(DefaultScalaModule)

// Invalid Message pack hex val for the array [10,13]. Array size is 3 instead of 2
val invalidData = "93 0a 0d"

// java.lang.OutOfMemoryError: Java heap space
val result: Array[Int] = msgpackMapper.readValue(stringToByteArray(invalidData), classOf[Array[Int]])

Here is project with the test case for this issue. jackson-msgpack.
Is there a fix or workaround for this issue?

Using jackson-module-scala 2.9.8, msgpack-core 0.8.12, jackson-dataformat-msgpack 0.8.16

Activity

  1. komamitsu
    self-assigned this
    on May 9, 2019
  2. komamitsu
    closed this as completedin #500on May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @komamitsu
    komamitsu

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

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.