Commit 408093a3 authored by yuzo@chromium.org's avatar yuzo@chromium.org

Fix: Off-by-one error in LowLevelPolicy::Done.

BUG=none
TEST=n/a

Review URL: http://codereview.chromium.org/150211

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19875 0039d316-1c4b-4281-b951-d872f2087c98
parent c7f9141a
......@@ -77,7 +77,7 @@ bool LowLevelPolicy::Done() {
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment