Fixed: HxD v 2.0.0.0: Hex replace does not accept empty replace pattern

Bug reports concerning HxD.
Post Reply
Pequi
Posts: 4
Joined: 21 Sep 2016 01:07

Fixed: HxD v 2.0.0.0: Hex replace does not accept empty replace pattern

Post by Pequi »

If I open a binary file and wanted to convert an unicode string to "normal" text, I would select it, paste it into a new file, then CTRL-R, choose "HEX" and type in 00 in "search for" and leave the "replace with" box clear.
I'd get a warning that the file size would change, click OK, and have a string I could save or paste into a browser.
That was with version 1.7
With the new version it says "The pattern has to contain at least one Hex Value".
00 IS a Hex Value, so that's a bug.
Fix please ?

Maël
Site Admin
Posts: 1219
Joined: 12 Mar 2005 14:15

Re: HxD v 2.0.0.0: Hex replace does not accept empty replace pattern

Post by Maël »

As far as I can tell, the bug description can be simplified to this:

If you have an empty string as a hex replace pattern (replace text remains clear), HxD complains with "The pattern has to contain at least one Hex Value".

Pequi
Posts: 4
Joined: 21 Sep 2016 01:07

Re: HxD v 2.0.0.0: Hex replace does not accept empty replace pattern

Post by Pequi »

This worked in the old version:
50 00 65 00 71 00 75 00 69 00
would become
50 65 71 75 69
Attachments
image0001.png
image0001.png (12.52 KiB) Viewed 3155 times

Pequi
Posts: 4
Joined: 21 Sep 2016 01:07

Re: HxD v 2.0.0.0: Hex replace does not accept empty replace pattern

Post by Pequi »

Yes, that's exactly the problem.
As a practical example, when you try to download a file you often get a small downloader, which is usually adware ridden.
So I would open the executable in HxD, find (if not encrypted) and copy the REAL download URL, which is usually in Unicode, open a new file in HxD, paste the URL in, replace the 00's with nothing (empty value), then copy and paste the (now) valid URL into my browser.
A matter of seconds. Now I have to use a text editor to achieve the same thing.
Yes, it now takes minutes
;)
But something I miss in the old version ...

PS Sorry my descriptions are so large, Portuguese is an unzipped language ...

Maël
Site Admin
Posts: 1219
Joined: 12 Mar 2005 14:15

Re: HxD v 2.0.0.0: Hex replace does not accept empty replace pattern

Post by Maël »

I had a problem with my harddrive and after replacing it I am checking my system and reinstalling software.

I'll post a reply when this is fixed.

Maël
Site Admin
Posts: 1219
Joined: 12 Mar 2005 14:15

Re: HxD v 2.0.0.0: Hex replace does not accept empty replace pattern

Post by Maël »

Fixed in current development version.

Pequi
Posts: 4
Joined: 21 Sep 2016 01:07

Re: Fixed: HxD v 2.0.0.0: Hex replace does not accept empty replace pattern

Post by Pequi »

Confirmed fixed in v2.0RC. Thank you.

Post Reply