Skip to content

Byte array search shouldn't need to specify length #79

Description

@cromachina

Describe the bug

You can enter a string of bytes for a byte array, but you also must specify the size in bytes.
The length should automatically be inferred by the bytes written.

To Reproduce
Steps to reproduce the behavior:

  1. Open the app
  2. Attach to a process
  3. Select the value type: Byte Array (Hex)
  4. Write a sequence of bytes into the Value field, like 00 11 22 AA BB CC
  5. The default length filled out is 4 bytes
  6. Click 'First scan'

Observe an error that says "ValueError: byte string too long"

Expected behavior
Length should be ignored or disabled when byte string is selected, and clicking "first scan" should just work.
The value type for "String (UTF-8)" seems to already work like this.

System (please complete the following information):

  • OS: NixOS (Linux)
  • Python Version 3.14

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