Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustuv: Fix a use-after-free in TTY failure #12823

Merged
merged 1 commit into from
Mar 13, 2014

Conversation

alexcrichton
Copy link
Member

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

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 rust-lang#12666
bors added a commit that referenced this pull request Mar 13, 2014
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
@bors bors closed this Mar 13, 2014
@bors bors merged commit 65cca4b into rust-lang:master Mar 13, 2014
@alexcrichton alexcrichton deleted the issue-12666 branch March 13, 2014 16:06
fasterthanlime pushed a commit to fasterthanlime/rust that referenced this pull request Jul 24, 2022
When the cursor is in a match arm, but before the fat arrow (=>) token, don't
add braces when autocompleting "if".

fixes rust-lang#12823
fasterthanlime pushed a commit to fasterthanlime/rust that referenced this pull request Jul 24, 2022
…match-guard, r=Veykril

fix: Don't add braces to 'if' completion in match guard position

fixes rust-lang#12823

Is this what you were thinking of here, `@Veykril` ? I haven't done any work on completions before, so I could definitely be misunderstanding the issue.
bors added a commit to rust-lang-ci/rust that referenced this pull request May 30, 2024
…s, r=y21

Suppress `iter_on_empty_collections` if the iterator's concrete type is relied upon

changelog: fixed rust-lang#12807
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Runtime Failures on TCP Stress Testing: (libuv) kqueue(): Too many open files and more
2 participants