Skip to content

Numeric PaddedString gets parsed as hex number #14

Description

@robin523790

We have a 10-byte PaddedString like this:

    value: str = cst.csfield(
        cs.PaddedString(10, "ascii"),
    )

This works fine when I enter text, but in the case of a numeric input (any hex number, ie. [0..9A..Fa..f]) the field throws a parsing error:
image

For the input "1234" I would expect the string to be parsed as bytes "\x31\x32\x33\x34\x00\x00\x00\x00\x00\x00".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions