Skip to content

Parsed BigDecimal is not limited for a scale value and has an UNLIMITED math context that is unsafe for open systems #65

Closed
@plokhotnyuk

Description

@plokhotnyuk

The code bellow can grab CPU core for several minutes and then will throw an out of memory error:

JsonStringInput.read[BigDecimal]("\"1e2000000000\"") + 1

More details: scala/bug#10882

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