ilanschnell / bsdiff4

binary diff and patch using the BSDIFF4-format
Other
118 stars 26 forks source link

generated patch size differs from result of bsdiff #7

Closed ghost closed 6 years ago

ghost commented 6 years ago

Environment

I used a image for testing, randomly deleted some bytes from the copy of that image, wanted to make a patch from the broken image to the original one.

Use python and bsdiff4 to write the patch bytes into a file, found its size is bigger than patch file generated from bsdiff command.

But using bspatch command to patch the modified image with python generated patch do works without problem.

Is this normal? thanks.

ghost commented 6 years ago

seems a compression level issue