Skip to content

PMP type conversion crashes on non-numeric values without error handling #577

Description

@sdghsdkjlas27-dotcom

pmp.rb lines 114-116 perform type conversion without error handling. If a PMP property has type 'int' but contains a non-numeric string (e.g. "abc"), Integer(Float("abc").truncate) will raise a Float domain error or ArgumentError. Similarly, Float("abc") raises an error. There is no rescue clause around the type conversion block.

REPRODUCTION: Set a PMP property typed as 'int' or 'float' to a non-numeric string value, then access it via Fbe.pmp.

IMPACT: Unhandled exception crashes the judge when accessing the malformed PMP property.

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