-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add defensive pointer boundary checks to log targets to avoid SEGFAUL… #95
Add defensive pointer boundary checks to log targets to avoid SEGFAUL… #95
Conversation
We are still discussing a way to make the ChannelBuffer threadsafe (or maybe to find another solution) |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #95 +/- ##
===========================================
- Coverage 62.80% 62.80% -0.01%
===========================================
Files 790 790
Lines 45196 45193 -3
===========================================
- Hits 28386 28383 -3
Misses 16810 16810 ☔ View full report in Codecov by Sentry. |
…TS with raceconditions
67706a9
to
d7d610e
Compare
@@ -69,9 +67,10 @@ void ChannelBuffer::reset() { | |||
|
|||
bool ChannelBuffer::dumpBuffer() { | |||
if (target_) { | |||
target_->write(pbase(), pptr()); | |||
// Explicitly check that `pptr()` is not larger than end of buffer. Racecondition can end up adding larger values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we be explicit that this is a race condition in the std library, rather than here.
…TS with raceconditions #89