Giter Site home page Giter Site logo

Comments (3)

S4ntiagoP avatar S4ntiagoP commented on June 24, 2024

Hey man!
I greatly appreciate you looking into the code closely enough as to find stuff like that. I care a lot about this kind of bugs, which can be elusive and hard to find.

That being said, are you sure this is really a bug?
Look at the cleanup section:

cleanup:
    if (hProcess)
        NtClose(hProcess);
    if (!ret_val && *hSnapshot)
        NtClose(*hSnapshot);
    if (!ret_val && hCloneProcess)
        NtClose(hCloneProcess);

    if (ret_val)
        return hCloneProcess;
    else
        return NULL;

If hProcess is set, then it will be closed, regardless if the function succeed or not.

Please let me know that you think 😃

from nanodump.

JohnLaTwC avatar JohnLaTwC commented on June 24, 2024

Looking at the cleanup routine, I agree with you.

I first thought this might be the only place that it is closed, but I see that it is also closed in cleanup. No bug! 👍
https://github.com/helpsystems/nanodump/blob/07e44d2aa2f97cd298b2063fc344999840c8d2a7/source/handle.c#L992

from nanodump.

S4ntiagoP avatar S4ntiagoP commented on June 24, 2024

thanks again for looking at the code!

from nanodump.

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.