Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework magic yaml section #2

Open
martinlindhe opened this issue May 19, 2023 · 0 comments
Open

Rework magic yaml section #2

martinlindhe opened this issue May 19, 2023 · 0 comments
Labels
enhancement New feature or request template-format
Milestone

Comments

@martinlindhe
Copy link
Owner

martinlindhe commented May 19, 2023

Current impl is limiting:

magic:
  - offset: 0000
    match: D4 76 8E 4B

We want something with multiple conditions, like gnu file has.

Maybe something like:

magic:
  - "0000: = D4 76 8E 4B"     # equals
    - "0004: > be:u32 1000"   # and is greater than

  - "0000: ! be:u32 1234"     # not equal
    - "0004: < le:u32 1500"   # and is less than

Also wanted:

  • minsize: 123 # file size must be at least 123 bytes
@martinlindhe martinlindhe added this to the 0.1 milestone Jun 4, 2023
@martinlindhe martinlindhe added the enhancement New feature or request label Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request template-format
Projects
None yet
Development

No branches or pull requests

1 participant