You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've thought of 3 floating value support improvements.
First of all, I suggest bringing the https://gregstoll.com/~gregstoll/floattohex/ functionality to ImHex. In my opinion, the most logical thing will be to put it into the IEEE754 floating point decoder tool or maybe next to it.
The next suggestion is an option to look for floats with (insert math operation) N decimal places after the point.
Example:
If N == 0, ImHex will find all integer floats, like 1.0 or -50.0
If N == 1, ImHex will find things like 0.5, -8.2 or -10.0
(Here the operation is "<=")
Finally, I've noticed that the numeric value search doesn't account for floats having special numbers (for instance, +inf or -inf). Please either add that special values support or make the user use the float -> hex converter from the second paragraph here.
How will this feature be useful to you and others?
Floating values often appear in various programs, but ImHex doesn't currently support hex to float conversions to aid with the reverse-engineering.
Floats are hard to recognize just by looking at them. If a certain group of consecutive bytes forms an integer float or "almost an integer float", that's suspicious. Right now it's impossible to automate that search.
What if a user decides to find all NaN values? I guess, they'd have to Google the hex version of the value (based on what exact floating type they expect to find) and use a normal binary pattern search. Maybe we can speed this up a little?
Request Type
I can provide a PoC for this feature or am willing to work on it myself and submit a PR
Additional context?
No response
The text was updated successfully, but these errors were encountered:
I just added a pr #1047 that I believe addresses one of the additions you mention. The changes allow you to create hex from decimal representation. To create decimal from hex you still need to translate hex to binary which should be easy.
What feature would you like to see?
I've thought of 3 floating value support improvements.
First of all, I suggest bringing the https://gregstoll.com/~gregstoll/floattohex/ functionality to ImHex. In my opinion, the most logical thing will be to put it into the IEEE754 floating point decoder tool or maybe next to it.
The next suggestion is an option to look for floats with (insert math operation) N decimal places after the point.
Example:
If N == 0, ImHex will find all integer floats, like 1.0 or -50.0
If N == 1, ImHex will find things like 0.5, -8.2 or -10.0
(Here the operation is "<=")
Finally, I've noticed that the numeric value search doesn't account for floats having special numbers (for instance, +inf or -inf). Please either add that special values support or make the user use the float -> hex converter from the second paragraph here.
How will this feature be useful to you and others?
Request Type
Additional context?
No response
The text was updated successfully, but these errors were encountered: