diff options
author | Andrew Au <andrewau@microsoft.com> | 2019-05-17 14:29:00 -0700 |
---|---|---|
committer | Andrew Au <cshung@gmail.com> | 2019-05-17 21:39:24 -0700 |
commit | 4d4d411dceb28c89bcd61b1fe41b5fb7a2af896b (patch) | |
tree | 7885d4da19f0078a01b7313bac4c083e465ed834 /src/vm/eventpipebuffer.cpp | |
parent | a3e43d62917bb542e1adda0a06684061ef77067f (diff) | |
download | coreclr-4d4d411dceb28c89bcd61b1fe41b5fb7a2af896b.tar.gz coreclr-4d4d411dceb28c89bcd61b1fe41b5fb7a2af896b.tar.bz2 coreclr-4d4d411dceb28c89bcd61b1fe41b5fb7a2af896b.zip |
Allow the write when the buffer can fit the event exactly
Diffstat (limited to 'src/vm/eventpipebuffer.cpp')
-rw-r--r-- | src/vm/eventpipebuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/eventpipebuffer.cpp b/src/vm/eventpipebuffer.cpp index 091e87e0e1..6d453b19d3 100644 --- a/src/vm/eventpipebuffer.cpp +++ b/src/vm/eventpipebuffer.cpp @@ -74,7 +74,7 @@ bool EventPipeBuffer::WriteEvent(Thread *pThread, EventPipeSession &session, Eve unsigned int eventSize = sizeof(EventPipeEventInstance) + payload.GetSize(); // Make sure we have enough space to write the event. - if(m_pCurrent + eventSize >= m_pLimit) + if(m_pCurrent + eventSize > m_pLimit) { return false; } |