Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Unified Diff: sandbox/src/policy_low_level.cc

Issue 150211: Fix: Off-by-one error in LowLevelPolicy::Done. (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/src/policy_low_level.cc
===================================================================
--- sandbox/src/policy_low_level.cc (revision 19800)
+++ sandbox/src/policy_low_level.cc (working copy)
@@ -77,7 +77,7 @@
for (Mmap::iterator it = mmap.begin(); it != mmap.end(); ++it) {
uint32 service = (*it).first;
- if (service > kMaxServiceCount) {
+ if (service >= kMaxServiceCount) {
return false;
}
policy_store_->entry[service] = current_buffer;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698