|Hi, does anyone know if there is a command-line utility that takes three arguments:|
sourcefile.exe diff.txt targetfile.exe
where the first is an existing binary file, the second is an existing text file, and the third is a binary file it creates.
The second argument specifies a text file that contains differences (in hex) required to turn sourcefile.exe into targetfile.exe. Its format is as follows: each line begins with an offset (in hex) and up to 16 bytes (in hex, space-separated). It then overwrites those bytes at the given offset. The format is a bit like what you get with the Unix cmp -l command, except it's all in hex.
So is there a patch utility that works on such a file? If not, I can write one in C++, but I would prefer to save time and not reinvent the wheel.