We weren't tracking the buffer size in one case, which was rewarded with
a segment violation due to NULL pointer access. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24975 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -77,6 +77,7 @@ UnixBufferQueue::Read(size_t size, net_buffer** _buffer)
|
||||
}
|
||||
|
||||
bytesLeft -= toCopy;
|
||||
fSize -= toCopy;
|
||||
}
|
||||
|
||||
return B_OK;
|
||||
|
||||
Reference in New Issue
Block a user