PDA

View Full Version : Bug: Invalid spaces in Hex Compare


shaggydogt
21-Jul-2008, 11:23 AM
Hey Guys,

Great product! Great Work! Love it and use it everyday, one of my favorite tools.

I came across the following undocumented feature in the beta build. Hopefully you guys will be able to duplicate the issue. When I use the Hex Compare the viewer inserts blank spaces, I'm not sure if this is by design or not. When I load the same file on both sides there are no spaces. Is it by design to show spaces when the files differ. It seems to me there shouldn't be blank spaces ever....

Session: Hex Compare
Beta Build: Build 462
OS: Vista x64

Steps to Dupe
===============
1. Fire up BC
2. Use Hex Compare
3. Load File1 and File2
4. Verify there are spaces in the Hex View

I included a screenshot from my environment.

Craig
21-Jul-2008, 11:26 AM
What you're seeing is by design. The blank spaces occur across from inserted bytes, similar to the way BC's text compare shows empty lines across from added ones.

shaggydogt
21-Jul-2008, 11:32 AM
Thanks for the quick response and explanation.

Though, one might argue that since the files are exactly the same length then no bytes have been inserted, only changed. In comparison to the text compare, blank lines are only inserted when the number of lines do not map up. In this case there is exactly the same number of bytes, so shouldn't the map 1:1?

Craig
21-Jul-2008, 11:45 AM
In that case use the Session->Session Settings dialog to edit the alignment settings and change it to "None".

shaggydogt
21-Jul-2008, 11:49 AM
Ah shibby! Thank You Sir!