Search hex string doesn't find some input byte values

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
j7n
Posts: 7
Joined: 12 Feb 2022 18:45

Search hex string doesn't find some input byte values

Post by j7n »

I am trying to search for file contents, and click the "It's a hex string", mode:normal, type:binary.

If the input string contains a certain byte value, it is not found.

For example: a 3254 byte file contains multiple occurrences of "96 01 21 7F" near the end. The program does not find it. But it is able to find "01 21 7F".

If I search for "96" in a set of random 6818 files (web cache), it returns only 1501 files. In reality 5394 files contain a byte equal to 0x96. Furthermore, if I search for either of these values 80,82,84,85,86,87,89,8B,8D,8E,8F I also get only approximately 1500 files, give or take a few. 81, 88, 8A, 8C return the correct number. But this pattern doesn't hold when searching for 2 consecutive bytes. The number of files returned is somewhat less if one of the bytes is 8X, or maybe any greater than 80.

Version: 22.80
OS: Server 2003 SP2

Last version known to work: 16.10 (must select binary mode)

admin
Site Admin
Posts: 66626
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Search hex string doesn't find some input byte values

Post by admin »

Interesting. Can you send me such a file for testing?

j7n
Posts: 7
Joined: 12 Feb 2022 18:45

Re: Search hex string doesn't find some input byte values

Post by j7n »

I can. But it is not a unique example of a file that is skipped from the results.

sj.package: 96 01 21 7F > not found
test81.bin: 7881BC > found
test87.bin: 7887BC > not found
sj.zip
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 66626
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Search hex string doesn't find some input byte values

Post by admin »

When I set Type to "Binary" it seems to work. Can you confirm that?

j7n
Posts: 7
Joined: 12 Feb 2022 18:45

Re: Search hex string doesn't find some input byte values

Post by j7n »

No. I can't find these search strings in 22.80 at all.

Here is how it looks.

https://i.imgur.com/u1d3QgC.png
https://i.imgur.com/2jAXmG3.png
https://i.imgur.com/fgVFRfU.png
https://i.imgur.com/LQuXFpF.png

I wouldn't be surprised if it's a regional setting on my computer. Previously I had a VisualBasic program stop working after I changed the decimal separator. lol. Maybe there is an unintentional conversion between code pages, which would affect the higher byte values only? I use windows-1257 and cp775.

admin
Site Admin
Posts: 66626
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Search hex string doesn't find some input byte values

Post by admin »

Attach images in the forum:
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 66626
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Search hex string doesn't find some input byte values

Post by admin »

Should be fixed in the next beta. Thanks, good bug! :tup:

Post Reply