Skip to content

FormatException with an unparseable hex number #105

Open
@xPaw

Description

@xPaw
"a" {
	"key" "0x11223344556677[]"
}

It passes the 0x prefix and 18 total length check but then fails to parse from hex. Valve's code kind of doesn't care because they do loose checks on the a/A characters and then math it.

I also noticed we check for 0x case insensitive, but valve only checks for lower case x.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions