Skip to content

Commit

Permalink
Fix fuzzer found null-deref in memory_quota (grpc#27648)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiller committed Oct 8, 2021
1 parent 8d8d071 commit 3dc5528
Show file tree
Hide file tree
Showing 3 changed files with 1,617 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/lib/resource_quota/memory_quota.cc
Expand Up @@ -376,7 +376,7 @@ void BasicMemoryQuota::Take(size_t amount) {
auto prior = free_bytes_.fetch_sub(amount, std::memory_order_acq_rel);
// If we push into overcommit, awake the reclaimer.
if (prior >= 0 && prior < static_cast<intptr_t>(amount)) {
reclaimer_activity_->ForceWakeup();
if (reclaimer_activity_ != nullptr) reclaimer_activity_->ForceWakeup();
}
}

Expand Down

0 comments on commit 3dc5528

Please sign in to comment.