SUMMARY Re: binary files

From: Joe LaCascio <jlacasci_at_wheatonma.edu>
Date: Thu, 16 Mar 2000 16:14:56 -0500 (EST)

Ok, thanks everyone.

Here's what I found: I had two exe's both created from Pro*C (Oracle).
SQL embedded in a C program. There was only one line of code different
in the source file, that line being an order by clause.

Here are the results with the following exe's:

exe source

fileone no changes to source
filetwo one line changed in source (order by modified)
filethree same exact source as fileone

diff reported that fileone was diff from filetwo, and fileone was EVEN
different from filethree ????

cmp reported same results as diff except it gave a "char 5, line 1"
result in all cases

sum and cksum report different checksum numbers in all cases, but same
block counts.

Finally, the solution I came up with:

perform a strings on each file and redirect to a file name.
then do a diff on the resulting two file names. The result is the
code line that is "actually" different.

This may not work for all exe's but it did for the Pro*C exe's

Thanks,
Joe


On Thu, 16 Mar 2000, Joe LaCascio wrote:

>
> Is there a way to tell if two binary files are different?
>
> Is there a version of diff for binary's?
>
> Thanks,
> Joe
>
>
Received on Thu Mar 16 2000 - 21:15:54 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT