Giter VIP home page Giter VIP logo

Comments (3)

boricj avatar boricj commented on July 19, 2024

So I've looked at it and the utility is choking on large logical cluster numbers in the data runs because of these kinds of constructs in the source code:

l_val &= (1 << (l * 8)) - 1;

With a large enough l, 1 << (l * 8) will overflow an int and bad things happen. By changing all occurrences to 1ull << (l * 8), the utility managed to complete execution (with warnings about overly large ADS and compressed files, but that's a separate issue).

from ntfs2btrfs.

maharmstone avatar maharmstone commented on July 19, 2024

Brilliant! Thanks for this, that's very helpful.

I believe MSVC's code analyser picks up stuff like this - I'll run it through that and see if it finds anything else similar.

from ntfs2btrfs.

maharmstone avatar maharmstone commented on July 19, 2024

All the arithmetic overflow issues should now be fixed.

from ntfs2btrfs.

Related Issues (20)

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.