mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
fix for possible error when receiving out of bad data
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28108 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b4e0b8fcf9
commit
23f68cd57f
3 changed files with 11 additions and 4 deletions
|
@ -536,7 +536,7 @@ static Class runLoopClass;
|
|||
{
|
||||
NSDebugMLLog(@"NSMessagePort_details",
|
||||
@"received %s event on 0x%x",
|
||||
type == ET_RPORT ? "read" : "write", self);
|
||||
type != ET_WDESC ? "read" : "write", self);
|
||||
/*
|
||||
* If we have been invalidated (desc < 0) then we should ignore this
|
||||
* event and remove ourself from the runloop.
|
||||
|
@ -558,7 +558,7 @@ static Class runLoopClass;
|
|||
|
||||
M_LOCK(myLock);
|
||||
|
||||
if (type == ET_RPORT)
|
||||
if (type != ET_WDESC)
|
||||
{
|
||||
unsigned want;
|
||||
void *bytes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue