diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-03-10 21:27:34 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-03-12 17:59:14 -0700 |
| commit | 65cca4bd3fa0abe1000662014b3e3ea1420728f5 (patch) | |
| tree | bd9e4e4e1a5f6068103ce49a5b5c0164c2079c40 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | cad7d24a23fec68c93a0aaefc974ab18a386c6b5 (diff) | |
| download | rust-65cca4bd3fa0abe1000662014b3e3ea1420728f5.tar.gz rust-65cca4bd3fa0abe1000662014b3e3ea1420728f5.zip | |
rustuv: Fix a use-after-free in TTY failure
If a TTY fails to get initialized, it still needs to have uv_close invoked on it. This fixes the problem by constructing the TtyWatcher struct before the call to uv_tty_init. The struct has a destructor on it which will close the handle properly. Closes #12666
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
