Title: packString with a string which is larger than 8192 bytes fails to unpack data · Issue #209 · msgpack/msgpack-java · GitHub
Open Graph Title: packString with a string which is larger than 8192 bytes fails to unpack data · Issue #209 · msgpack/msgpack-java
X Title: packString with a string which is larger than 8192 bytes fails to unpack data · Issue #209 · msgpack/msgpack-java
Description: Following test fails: def testLargeData : Array[Byte] = { val out = new ByteArrayOutputStream() val packer = msgpack.newPacker(out) val stringLength = 8193 packer .packArrayHeader(2) .packString("l" * stringLength) .packInt(1) packer.clo...
Open Graph Description: Following test fails: def testLargeData : Array[Byte] = { val out = new ByteArrayOutputStream() val packer = msgpack.newPacker(out) val stringLength = 8193 packer .packArrayHeader(2) .packString("l...
X Description: Following test fails: def testLargeData : Array[Byte] = { val out = new ByteArrayOutputStream() val packer = msgpack.newPacker(out) val stringLength = 8193 packer .packArrayHeader(2) .packString(&q...
Opengraph URL: https://github.com/msgpack/msgpack-java/issues/209
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"packString with a string which is larger than 8192 bytes fails to unpack data","articleBody":"Following test fails:\n\n```\n def testLargeData : Array[Byte] = {\n val out = new ByteArrayOutputStream()\n val packer = msgpack.newPacker(out)\n val stringLength = 8193\n\n packer\n .packArrayHeader(2)\n .packString(\"l\" * stringLength)\n .packInt(1)\n\n packer.close()\n\n val arr = out.toByteArray\n debug(s\"packed: ${toHex(arr)}, size:${arr.length}\")\n\n arr\n }\n```\n\n```\n \"parse message large packed data\" taggedAs(\"unpack\") in {\n val arr = testLargeData\n\n val unpacker = msgpack.newUnpacker(arr)\n\n var count = 0\n while(unpacker.hasNext) {\n count += 1\n readValue(unpacker)\n }\n count shouldBe 3\n unpacker.getTotalReadBytes shouldBe arr.length\n }\n```\n\nIf stringLength is 8192, the test passes.\n","author":{"url":"https://github.com/oza","@type":"Person","name":"oza"},"datePublished":"2015-03-13T18:10:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/209/msgpack-java/issues/209"}
| 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:fcd02dae-8405-5532-e5cb-43006ecfd408 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E474:2BF803:2809937:3A03D7F:6A550B75 |
| html-safe-nonce | edccd67044be655f53bea661f20fa185e68cfdefd9a00838b6b615508bfd83f8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDc0OjJCRjgwMzoyODA5OTM3OjNBMDNEN0Y6NkE1NTBCNzUiLCJ2aXNpdG9yX2lkIjoiMTMzNTI3MjkxNTY5NzIwODE4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6dd0ca4fca4e8e789e79482e35e591099fe9cccc416b88f2a1fc657c3f6cc251 |
| hovercard-subject-tag | issue:61166909 |
| 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/209/issue_layout |
| twitter:image | https://opengraph.githubassets.com/537f098344bdbc71e07a1cb035458574b21ca729d36ed2318bac8133591be82f/msgpack/msgpack-java/issues/209 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/537f098344bdbc71e07a1cb035458574b21ca729d36ed2318bac8133591be82f/msgpack/msgpack-java/issues/209 |
| og:image:alt | Following test fails: def testLargeData : Array[Byte] = { val out = new ByteArrayOutputStream() val packer = msgpack.newPacker(out) val stringLength = 8193 packer .packArrayHeader(2) .packString("l... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oza |
| hostname | github.com |
| expected-hostname | github.com |
| None | 682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5 |
| 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 | 0f2adbaa4b43ea302b02981f637a782ae92ed6dc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width