OSDN Git Service
(root)
/
android-x86
/
system-netd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0186179
)
DO NOT MERGE UidRange bounds-checking typo
author
Robin Lee
<rgl@google.com>
Fri, 3 Jun 2016 09:30:00 +0000
(10:30 +0100)
committer
Michal 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
patch
|
blob
|
history
diff --git
a/server/binder/android/net/UidRange.cpp
b/server/binder/android/net/UidRange.cpp
index
23774bf
..
ecce612
100644
(file)
--- 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;
}