From 1b82ad799145b0806636e52ab563f1a3917c19fc Mon Sep 17 00:00:00 2001 From: Robin Lee Date: Fri, 3 Jun 2016 10:30:00 +0100 Subject: [PATCH] DO NOT MERGE UidRange bounds-checking typo 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/binder/android/net/UidRange.cpp b/server/binder/android/net/UidRange.cpp index 23774bf..ecce612 100644 --- a/server/binder/android/net/UidRange.cpp +++ b/server/binder/android/net/UidRange.cpp @@ -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; } -- 2.11.0