Code Monkey home page Code Monkey logo

Comments (10)

ondys avatar ondys commented on August 15, 2024

Thanks for the report, the issue has been already fixed.

from draco.

rtoepfer avatar rtoepfer commented on August 15, 2024

Would be nice to get credit, you didn't fix it until I posted the pull request!

from draco.

kaben avatar kaben commented on August 15, 2024

Yes. @ondys, you should in future give credit where due. @rtoepfer's pull request, which he submitted yesterday, contains this patch for io/mesh_io.h:

   // Determine size of stream and write into a vector
    auto is_size = is.tellg();
    is.seekg(0, std::ios::end);
 -  is_size = is.tellg() - is_size;
 -  is.seekg(0, std::ios::beg);
 -  std::vector<char> data(is_size);
 -  is.read(&data[0], is_size);
 +  auto vec_size = is.tellg() - is_size;
 +  is.seekg(0, is_size);
 +  std::vector<char> data(vec_size);
 +  is.read(&data[0], vec_size);

Your diff to same, which you wrote half an hour ago, contains what appears to be a rewrite of his patch:

    // Determine size of stream and write into a vector
 -  auto is_size = is.tellg();
 +  const auto start_pos = is.tellg();
    is.seekg(0, std::ios::end);
 -  is_size = is.tellg() - is_size;
 -  is.seekg(0, std::ios::beg);
 +  const std::streampos is_size = is.tellg() - start_pos;
 +  is.seekg(start_pos);
    std::vector<char> data(is_size);
    is.read(&data[0], is_size);

Not cool.

from draco.

ondys avatar ondys commented on August 15, 2024

It has been actually fixed internally shortly after the report yesterday. It just takes time to propagate the changes to the public repo. In any case, we definitely welcome any external pull requests and we will be happy to merge them as long as they don't conflict with our internal fixes.

from draco.

kaben avatar kaben commented on August 15, 2024

To be clear, you wrote:

has been actually fixed internally shortly after the report

Did you mean to say "shortly before"? Or did the fix take place after the report, but before you had a chance to read the report?

from draco.

ondys avatar ondys commented on August 15, 2024

Shortly after. We monitor the issue tracker and any reported bugs are fixed internally first and then they are pushed to the public repo (usually we do the final push only after sufficient number of changes accumulate, unless the fix is considered critical). Note that the pull request in question was posted after about one day after the actual report.

from draco.

rtoepfer avatar rtoepfer commented on August 15, 2024

from draco.

waldyrious avatar waldyrious commented on August 15, 2024

@ondys are you guys planning to eventually do all development in the open? Otherwise there will be such cases of duplicated work, which discourages contributions.

from draco.

ondys avatar ondys commented on August 15, 2024

@waldyrious we may eventually move it to open but we don't plan to do it in the near future. To reduce the chance of duplicate work, we will do our best to write a note on issues when they are picked up by internal developers.

from draco.

waldyrious avatar waldyrious commented on August 15, 2024

Understood -- thanks for the clarification.

from draco.

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.