Changeset 125fd21


Ignore:
Timestamp:
Mar 29, 2010, 8:36:18 PM (11 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
db4b293
Parents:
f25812b
git-author:
Nelson Elhage <nelhage@mit.edu> (03/22/10 22:03:53)
git-committer:
Nelson Elhage <nelhage@mit.edu> (03/29/10 20:36:18)
Message:
Fix a use-after-free in popexec.c

Fixes: #130
File:
1 edited

Legend:

Unmodified
Added
Removed
  • popexec.c

    r4cca591 r125fd21  
    9696  if (!pe->pid && !pe->winactive) {
    9797    owl_select_remove_io_dispatch(d);
     98    pe->dispatch = NULL;
    9899    return;
    99100  }
     
    114115    }
    115116    owl_select_remove_io_dispatch(d);
     117    pe->dispatch = NULL;
    116118    return;
    117119  }
     
    157159
    158160  pe->winactive = 0;
    159   if (pe->dispatch->fd > 0) {
     161  if (pe->dispatch) {
    160162    owl_select_remove_io_dispatch(pe->dispatch);
     163    pe->dispatch = NULL;
    161164  }
    162165  if (pe->pid) {
Note: See TracChangeset for help on using the changeset viewer.