Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Incorrect parsing of hex values #27

@MikhailRyazanov

Description

@MikhailRyazanov

ykparse (and probably everything else) incorrectly parses hexadecimal strings with upper-case letters. Namely, all upper-case letters are treated as zeros instead of treating the letters AF the same way as af (and all other symbols besides 09, AF, af as input errors).

Example:

$ ykparse 0123456789ABCDEFGHIJKLMNOPQRSTUV cbdefghijklnrtuvcbdefghijklnrtuv
Input:
  token: cbdefghijklnrtuvcbdefghijklnrtuv
          01 23 45 67 89 ab cd ef 01 23 45 67 89 ab cd ef 
  aeskey: 0123456789ABCDEFGHIJKLMNOPQRSTUV
          01 23 45 67 89 00 00 00 00 00 00 00 00 00 00 00 
...

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