Skip to content

Segmentation fault when parsing JSON number to BigDecimal using MRI native extension #320

@xb

Description

@xb

When executing this code

JSON.parse('{"foo": 9.01234567890123456789}', decimal_class: BigDecimal)

an exception is raised unexpectedly. As soon as the exception is printed, the crash happens.

See PR #321 for a test which reproduces the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions