Giter Club home page Giter Club logo

diff's People

Contributors

kuba-- avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

diff's Issues

Broken recreated file

I tested the diff implementation with a latest Fedora Workstation x86_64 DVD image in following way:
I had the original image (SHA256: 865c4457dd066d3074c35a8847c8dac1380667c96a4f6d74526324dba14f1b5c) and I incremented one byte by one:

$ cmp -l orig.iso modified2.iso | gawk '{printf "%08X %02X %02X\n", $1, strtonum(0$2), strtonum(0$3)}'
42CC669F 31 32

The resulting modified image file has SHA256: e3cec2d5bf66f262c6b57b639e013cd804b054456305ba570058d67e3e0fe4f4
I then created signatures and delta from original one:

$ ./signature ~/Downloads/orig.iso sigs.dat
$ ./delta sigs.dat ~/Downloads/modified2.iso delta.dat

The resulting signatures file was 125 bytes long and the delta was correspondingly ~192MB

$ ./patch ~/Downloads/orig.iso delta.dat recreated.iso

...it created a broken file. The resulting recreated.iso was only 1.7GB whereas the original one is 1.9GB

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.