Skip to content

Conversation

@casperisfine
Copy link

@casperisfine casperisfine commented May 19, 2023

#335 revealed this issue.

The original code assumed the ext_type is a T_FIXNUM.

But if the user submit a number large enough, it can be a T_BIGNUM which leads to an assertion error in FIX2INT().

@casperisfine casperisfine force-pushed the check-ext-code-fixnum branch from 8293adb to 167641a Compare May 19, 2023 14:43
@casperisfine casperisfine changed the title Debug Windows assertion failure Packer_write_extension: handle T_BIGNUM May 19, 2023
The original code assumed the `ext_type` is a T_FIXNUM.

But if the user submit a number large enough, it can be a T_BIGNUM
which leads to an assertion error in `FIX2INT()`.
@casperisfine casperisfine force-pushed the check-ext-code-fixnum branch from 167641a to 34a7400 Compare May 19, 2023 14:44
@byroot byroot marked this pull request as ready for review May 19, 2023 15:06
Copy link
Member

@byroot byroot left a comment

Choose a reason for hiding this comment

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

@byroot byroot merged commit c5d862f into msgpack:master May 19, 2023
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.

2 participants