Skip to content

Conversation

@xerial
Copy link
Member

@xerial xerial commented Feb 14, 2021

No description provided.

@xerial xerial requested a review from komamitsu February 14, 2021 20:38
val msgpack = createMessagePackData(p => p.packExtensionTypeHeader(MessagePack.Code.EXT32, Int.MaxValue))
val u = MessagePack.newDefaultUnpacker(msgpack)
try {
intercept[MessageInsufficientBufferException] {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The expectation of this test case is unclear to me. I guess you want to avoid 2GB memory allocation in this test, though. How about adding a comment to describe your intention?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added more comment to explain why we need to use this a bit weird test code

Copy link
Member

@komamitsu komamitsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@xerial xerial merged commit f67b6e5 into develop Feb 16, 2021
@xerial xerial deleted the skippayload-boundary-check branch July 19, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants