GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — Fix map size overflow in unpackValue by PHJ2000 · Pull Request #1044 · msgpack/msgpack-java ConversationFixes #1042. Check the map size before allocating the interleaved key/value array in both The streaming ValidationThe same 21 new AirSpec cases produced four expected errors before the fix and passed afterward; the other 17 cases passed on both versions. They cover both overloads, the overflow boundary, existing unsigned-size rejection, ordinary fixmap/map16/map32 values, nested maps, and streaming headers. All 21 cases pass with both default and universal buffers on actual Java 8, 11, 17, 21 and 24 test JVMs. The existing pending entry is the malformed UTF-8 string case in Broader local results:
The remaining universal Java 21 error is the unchanged AirSpec’s stock XML repeats leaf names for some nested tests. Additional full core runs used a verification-only copy of its event reporter that includes the actual parent test context in each name. Those reports contain 215 distinct testcase names and preserve the outcomes above; assertions, test execution, status and errors were unchanged. The 21 new regression cases and the focused Java-version matrix also passed with the unmodified reporter. This is not a claim that every project test is green. Remote CI has not run for this unpublished branch. Portable reproduction commands and build notesRun sbt itself on JDK 21. Set TEST_JAVA_HOME=/path/to/jdk21 ./sbt -batch \
'msgpack-core/testOnly org.msgpack.core.MapSizeLimitTest'
./sbt -batch scalafmtCheckAll jcheckStyleFor the core suite, use TEST_JAVA_HOME=/path/to/jdk21 ./sbt -batch \ 'msgpack-core/testOnly *' TEST_JAVA_HOME=/path/to/jdk21 ./sbt -batch \ 'set msgpackCore / Test / javaOptions += "-Dmsgpack.universal-buffer=true"' \ 'msgpack-core/testOnly *' The initial Java 8 attempt encountered TEST_JAVA_HOME=/path/to/jdk8 ./sbt -batch \ 'set msgpackCore / Compile / javacOptions ++= Seq("-bootclasspath", "/path/to/jdk8/jre/lib/rt.jar")' \ 'msgpack-core/testOnly *' TEST_JAVA_HOME=/path/to/jdk8 ./sbt -batch \ 'set msgpackCore / Compile / javacOptions ++= Seq("-bootclasspath", "/path/to/jdk8/jre/lib/rt.jar")' \ 'set msgpackCore / Test / javaOptions += "-Dmsgpack.universal-buffer=true"' \ 'msgpack-core/testOnly *' For Jackson, obtain its java -jar junit-platform-console-standalone-1.14.4.jar execute \ --class-path '<msgpack-jackson Test/fullClasspath>' \ --scan-class-path --include-package org.msgpack.jackson.dataformat \ --fail-if-no-tests --details summary java -jar junit-platform-console-standalone-1.14.4.jar execute \ --class-path '<msgpack-jackson Test/fullClasspath>' \ --select-class org.msgpack.jackson.dataformat.ExampleOfTypeInformationSerDe \ --fail-if-no-tests --details summary The report-only verification input comes from AirSpec 2026.2.4. Its sole change qualifies the emitted event name with The fix and tests are limited to
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabelsProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. MessageUnpacker#unpackValue can cause NegativeArraySizeException for large maps
Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | ||||||||||
| 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. |