OSDN Git Service

DO NOT MERGE UidRange bounds-checking typo
authorRobin Lee <rgl@google.com>
Fri, 3 Jun 2016 09:30:00 +0000 (10:30 +0100)
committerMichal Karpinski <mkarpinski@google.com>
Fri, 2 Dec 2016 13:38:41 +0000 (13:38 +0000)
This is from copy-pasting the line above and changing the assert
message but not the actual check.

(cherry picked from commit 927c40f40148880ce6f6bbe5335c2741b4195ad3)

Change-Id: I6ec2902ea4d1a4dc139b02cfeb9d6978af380a21

server/binder/android/net/UidRange.cpp

index 23774bf..ecce612 100644 (file)
@@ -76,7 +76,7 @@ void UidRange::setStart(int32_t uid) {
 
 void UidRange::setStop(int32_t uid) {
     if (mStart != -1) {
-        ALOG_ASSERT(uid <= mStop, "stop UID must be greater than or equal to start UID");
+        ALOG_ASSERT(mStart <= uid, "stop UID must be greater than or equal to start UID");
     }
     mStop = uid;
 }