Binary comparision not correct

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
jiang2
New Member
Posts: 4
Joined: Wed Mar 11, 2009 11:29 pm

Binary comparision not correct

Post by jiang2 »

I got two binary files. ExamDiff Pro can not compare them correctly.
I tried to compare these file with UltraCompare and it can work correctly.
There are two differences:
1. The content from offset 2000H - 2FFFH is different.
2. Binary1.bin is larger.
Attachments
BinaryFiles.rar
(1.62 KiB) Downloaded 851 times
User avatar
psguru
Site Admin
Posts: 2231
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Binary comparision not correct

Post by psguru »

Could you post a screenshot of the problem?
psguru
PrestoSoft
jiang2
New Member
Posts: 4
Joined: Wed Mar 11, 2009 11:29 pm

Re: Binary comparision not correct

Post by jiang2 »

ExamDiff.png is the result of ExamDiff Pro and UltraCompare.png is the result of UltraCompare.
If you open the files with hex editor and jump to the offsets, you will find out the data in those offsets are the same.
Attachments
UltraCompare.PNG
UltraCompare.PNG (78.78 KiB) Viewed 17833 times
ExamDiff.PNG
ExamDiff.PNG (86.07 KiB) Viewed 17833 times
User avatar
psguru
Site Admin
Posts: 2231
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Binary comparision not correct

Post by psguru »

Perhaps you are not seeing but in both places diffs are correct. Both FF/01 (in the first shown diff) and 01/19 (in the second) are colored as Changed.
psguru
PrestoSoft
jiang2
New Member
Posts: 4
Joined: Wed Mar 11, 2009 11:29 pm

Re: Binary comparision not correct

Post by jiang2 »

I think I can understand what your means is.
The binary comparision algorithm of ExamDiff Pro is not wrong but not clear enough.
The different content of these files are from 2000H to 2FFFH and it is not easy to get the result from ExamDiff Pro.

I think ExamDiff Pro is the best of the comparision tools in the world, but UltraCompare shows the result clearer to users than ExamDiff Pro in this case.
The binary comparision is a very important function to some users, perhaps you can consider to make it better.
User avatar
psguru
Site Admin
Posts: 2231
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Binary comparision not correct

Post by psguru »

So in this case, how would you show the differences?
psguru
PrestoSoft
jiang2
New Member
Posts: 4
Joined: Wed Mar 11, 2009 11:29 pm

Re: Binary comparision not correct

Post by jiang2 »

I think the binary (fast) mode of UltraCompare shows a better way in this case. You can download it to try from http://www.ultraedit.com/downloads/ultr ... nload.html

I think this feature is very useful to compare firmware files. The firmware files are usually the same size, so the binary (fast) mode is easier to understand to users.

Maybe, you can provide two ways to show the binary comparison in the future, one is the original way and another is the binary (fast) mode to look like UltraCompare.

It is also a good idea to show offset in left side of the window. It can let users read the result easily.
Attachments
UltraCompare2.PNG
UltraCompare2.PNG (82.92 KiB) Viewed 17808 times
User avatar
psguru
Site Admin
Posts: 2231
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Binary comparision not correct

Post by psguru »

So it looks like their Fast Mode is just a byte-by-byte comparison. We don't have this; perhaps it's a good idea to have something like this.
It is also a good idea to show offset in left side of the window. It can let users read the result easily.
See http://www.prestosoft.com/edp_faq.asp#17
psguru
PrestoSoft
MSpagni
Expert Member
Posts: 539
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: Binary comparision not correct

Post by MSpagni »

So it looks like their Fast Mode is just a byte-by-byte comparison. We don't have this; perhaps it's a good idea to have something like this.
I second the request.
Sometime that method is simpler to understand.
Of course it should be available as an option in addition to the present mode.
AlexL
Expert Member
Posts: 129
Joined: Wed Aug 11, 2004 6:25 am
Location: Israel
Contact:

Re: Binary comparision not correct

Post by AlexL »

I'd like to refer also to this thread:
viewtopic.php?t=421
which more or less mentions the same problem.

In case of text comparing we already have the needed functionality (discussed here: viewtopic.php?p=1492). But the same mechanism (using similarity 0) could also be applied to the binary comparison, in which case the described problem would be solved.

And more, provided such case is enabled by user, we can also display hex offsets in the panels (because there will be no comparison gaps already). I tend to agree that such display would add readability.
User avatar
psguru
Site Admin
Posts: 2231
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Binary comparision not correct

Post by psguru »

The following suggestion has been added to ExamDiff Pro wish list, with all of your votes:

Implement fast binary comparison mode (byte-by-byte comparison)
psguru
PrestoSoft
Post Reply