diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-11-06 14:55:47 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-11-09 19:39:42 +0100 |
commit | 20fdd28047bfe8fabb7cebbda49386f4cab3c020 (patch) | |
tree | 4600efbefea38a97fc646d3119b1089398bce259 /libports/reallocate-from-external.c | |
parent | e65dc371a1c421dcfe4b6bbf2f937ae7ef5a563d (diff) |
proc: fix a use-after-free error
If we have to create a new process group, we have to do this before
leaving the current one. The current process group is deallocated if
the process is the last process in that group. Likewise, if the
current group was the last group in the current groups session, the
session is deallocated.
Found using the Clang Static Analyzer.
* proc/pgrp.c (S_proc_setpgrp): Fix use-after-free error.
Diffstat (limited to 'libports/reallocate-from-external.c')
0 files changed, 0 insertions, 0 deletions