src: fix use-after-free in inspector agent · nodejs/node@80b10b4 · GitHub
Skip to content

Commit 80b10b4

Browse files
committed
src: fix use-after-free in inspector agent
uv_close() is an asynchronous operation. Calling it on a data member inside the destructor is unsound because its memory is about to be reclaimed but libuv is not done with it yet. PR-URL: #7907 Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Eugene Ostroukhov <eostroukhov@chromium.org> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 75c6d9d commit 80b10b4

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

src/inspector_agent.cc

Lines changed: 13 additions & 10 deletions

0 commit comments

Comments
 (0)