Git Product home page Git Product logo

Comments (2)

veryfoolish avatar veryfoolish commented on June 5, 2024

Just to note; I am auditing your code in general. What would be the easiest way for me to send you the things I find? There are quite a lot of issues in your code: you use variable-sized buffers all over, esp. in the memory management section... you really should probably use std::vector or perhaps a new type... but what you’re writing is technically incorrect and almost certainly insecure!— You declare enums incorrectly too; as if you were writing C not C++. I’m not 100% sure, but I also think you’re using std::bind incorrectly; or at least given the length of your arguments it’s very, very difficult to figure out if it’s secure or not.

Moreover, the code in general a complete mess. You misspell things all the time (I understand English isn’t your first language) and the documentation is awful.

from libtorrent.

rakshasa avatar rakshasa commented on June 5, 2024

Variable-length arrays are part of C99, and nice to use so I use them. While some uses of non-POD cases need to be fixed it is a limited issue. In those the other cases it is no more incorrect or insecure than their use in C99. Same for enums, what is C or C++ style doesn't matter.

And length of bind arguments only matter if they are incorrect, with type safety ensuring that the arguments are the right type.

Real examples of issues are whats needed, not generic statements on style are less useful.

Removed several extra semicolons.

from libtorrent.

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.