Title: OOM exception for invalid msgpack messages · Issue #498 · msgpack/msgpack-java · GitHub
Open Graph Title: OOM exception for invalid msgpack messages · Issue #498 · msgpack/msgpack-java
X Title: OOM exception for invalid msgpack messages · Issue #498 · msgpack/msgpack-java
Description: 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 sc...
Open Graph Description: 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 "...
X Description: 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 except...
Opengraph URL: https://github.com/msgpack/msgpack-java/issues/498
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OOM exception for invalid msgpack messages","articleBody":"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.\r\n\r\n\r\n`val msgpackMapper = new ObjectMapper(new MessagePackFactory)` \r\n `msgpackMapper.registerModule(DefaultScalaModule)`\r\n\r\n`// Invalid Message pack hex val for the array [10,13]. Array size is 3 instead of 2`\r\n`val invalidData = \"93 0a 0d\" `\r\n\r\n`// java.lang.OutOfMemoryError: Java heap space`\r\n` val result: Array[Int] = msgpackMapper.readValue(stringToByteArray(invalidData), classOf[Array[Int]])`\r\n\r\n\r\n\r\nHere is project with the test case for this issue. [jackson-msgpack](https://github.com/ponnur/jackson-msgpack).\r\nIs there a fix or workaround for this issue? \r\n\r\nUsing jackson-module-scala 2.9.8, msgpack-core 0.8.12, jackson-dataformat-msgpack 0.8.16","author":{"url":"https://github.com/ponnur","@type":"Person","name":"ponnur"},"datePublished":"2019-05-09T10:24:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/498/msgpack-java/issues/498"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6336de4d-2a84-0d73-673d-9b1edf602401 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9DC2:21BDF9:2D4AE3:3E269D:6A57CB86 |
| html-safe-nonce | b571a7b7392022319a43cab3977d196e5d3761acf4e7b02854902c1532531e0d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REMyOjIxQkRGOToyRDRBRTM6M0UyNjlEOjZBNTdDQjg2IiwidmlzaXRvcl9pZCI6Ijc3OTM1MDk2MTY4NTY4NDUxOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1030d813f0cbd0bd9fbd5a7fe7636f959959be0f57f96ce12932f64e8841feed |
| hovercard-subject-tag | issue:442163579 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/msgpack/msgpack-java/498/issue_layout |
| twitter:image | https://opengraph.githubassets.com/921567fda34ae869f6432c929ae8ed846826dfc9d4a398476b526c72103e3163/msgpack/msgpack-java/issues/498 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/921567fda34ae869f6432c929ae8ed846826dfc9d4a398476b526c72103e3163/msgpack/msgpack-java/issues/498 |
| og:image:alt | 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 "... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ponnur |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5bf9f84655de1d0e9aa064cd3b2bc9703556c68ae53b94e21b872b7e9f1f7cc1 |
| turbo-cache-control | no-preview |
| go-import | github.com/msgpack/msgpack-java git https://github.com/msgpack/msgpack-java.git |
| octolytics-dimension-user_id | 198264 |
| octolytics-dimension-user_login | msgpack |
| octolytics-dimension-repository_id | 1971346 |
| octolytics-dimension-repository_nwo | msgpack/msgpack-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1971346 |
| octolytics-dimension-repository_network_root_nwo | msgpack/msgpack-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f76ee5bea8be15c2aede06f855f5c4c808f6eaf5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width