diff options
author | Tor Norbye <tnorbye@google.com> | 2012-07-19 17:57:52 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2012-07-23 15:06:58 -0700 |
commit | 74dc3e0d7d584d039689e57a80cf9868267883fd (patch) | |
tree | 29a4cd49209f5f9fa015f928aaa36c364f8312f8 /lint/cli | |
parent | 2c611aed27d75bd816b7887b64f98ff1ed87b097 (diff) | |
download | sdk-74dc3e0d7d584d039689e57a80cf9868267883fd.zip sdk-74dc3e0d7d584d039689e57a80cf9868267883fd.tar.gz sdk-74dc3e0d7d584d039689e57a80cf9868267883fd.tar.bz2 |
Add basic flow analysis support to lint
This changeset adds in the ASM analysis library (an optional part of
the ASM package lint is already using to process bytecode). It also
adds some basic flow analysis to the SecureRandom detector to detect
whether a given dispatch to a field of type java.util.Random is
actually pointing to a java.security.SecureRandom, in which case it
flags calls on it to setSeed() where the argument is a fixed integer.
Change-Id: If85ab9f8db0e801a01f1a3ea845865b4f98e259c
Diffstat (limited to 'lint/cli')
-rw-r--r-- | lint/cli/.classpath | 1 | ||||
-rw-r--r-- | lint/cli/Android.mk | 1 | ||||
-rw-r--r-- | lint/cli/etc/manifest.txt | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/lint/cli/.classpath b/lint/cli/.classpath index ff20329..b5483f0 100644 --- a/lint/cli/.classpath +++ b/lint/cli/.classpath @@ -7,6 +7,7 @@ <classpathentry combineaccessrules="false" kind="src" path="/lint-checks"/> <classpathentry kind="var" path="ANDROID_SRC/prebuilts/tools/common/asm-tools/asm-4.0.jar" sourcepath="/ANDROID_SRC/prebuilts/tools/common/asm-tools/src.zip"/> <classpathentry kind="var" path="ANDROID_SRC/prebuilts/tools/common/asm-tools/asm-tree-4.0.jar" sourcepath="/ANDROID_SRC/prebuilts/tools/common/asm-tools/src.zip"/> + <classpathentry kind="var" path="ANDROID_SRC/prebuilts/tools/common/asm-tools/asm-analysis-4.0.jar" sourcepath="/ANDROID_SRC/prebuilts/tools/common/asm-tools/src.zip"/> <classpathentry kind="var" path="ANDROID_SRC/prebuilts/tools/common/guava-tools/guava-10.0.1.jar" sourcepath="/ANDROID_SRC/prebuilts/tools/common/guava-tools/src.zip"/> <classpathentry kind="var" path="ANDROID_SRC/prebuilts/tools/common/lombok-ast/lombok-ast-0.2.jar" sourcepath="/ANDROID_SRC/prebuilts/tools/common/lombok-ast/src.zip"/> <classpathentry kind="output" path="bin"/> diff --git a/lint/cli/Android.mk b/lint/cli/Android.mk index ce6c5ad..8a46d48 100644 --- a/lint/cli/Android.mk +++ b/lint/cli/Android.mk @@ -16,6 +16,7 @@ LOCAL_JAVA_LIBRARIES := \ lombok-ast-0.2 \ asm-tools \ asm-tree-tools \ + asm-analysis-tools \ guava-tools LOCAL_MODULE := lint diff --git a/lint/cli/etc/manifest.txt b/lint/cli/etc/manifest.txt index 0cb09ef..2b7965a 100644 --- a/lint/cli/etc/manifest.txt +++ b/lint/cli/etc/manifest.txt @@ -1,2 +1,2 @@ Main-Class: com.android.tools.lint.Main -Class-Path: common.jar lint_api.jar lint_checks.jar asm-4.0.jar asm-tree-4.0.jar guava-10.0.1.jar lombok-ast-0.2.jar +Class-Path: common.jar lint_api.jar lint_checks.jar asm-4.0.jar asm-tree-4.0.jar asm-analysis-4.0.jar guava-10.0.1.jar lombok-ast-0.2.jar |