commit | 439b86167748a3e65b473bc80b3229b045bee90b | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Wed Jun 24 12:58:02 2020 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Wed Jun 24 14:52:47 2020 -0600 |
tree | 66d78c838bbdbf6d3dbfe70d6031c433a510c6ec | |
parent | acc7080d7eceea8343a079ccade1a917aeaf2fc6 [diff] |
Add checker for PID/UID/user ID arguments. Many system internals pass around PID, UID and user ID arguments as a single weakly-typed "int" value, which developers can accidentally cross in method argument lists, resulting in obscure bugs. Bug: 155703208 Test: atest error_prone_android_framework_test Change-Id: I5e4d9b5a533071f94d82dff17faff5d52ae54564