summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTapas Pradhan <tpradhan@codeaurora.org>2014-04-01 19:41:36 +0530
committerSteve Kondik <shade@chemlab.org>2014-04-04 17:16:07 -0700
commitdfe86e0dd03af2e9333a680ad4c65276a0b5da45 (patch)
tree3df376af587c90a8bdfd5e21172db3ed33e8f9be
parent6fa44136a9a8df0f83c6c4d6e85a022ca9ff8b9e (diff)
downloadandroid_dalvik-dfe86e0dd03af2e9333a680ad4c65276a0b5da45.tar.gz
android_dalvik-dfe86e0dd03af2e9333a680ad4c65276a0b5da45.tar.bz2
android_dalvik-dfe86e0dd03af2e9333a680ad4c65276a0b5da45.zip
Dalvik :Increase the upper limit check for DexOpt Deps table
Increasing upper limit check for the Deps table as additonal jars added causes the dalvik to crash while performing dexopt on cached jar files. This is needed for passing cts test case which is part of libcore.java.util.jar.DalvikExecTest class Change-Id: I479d105002f98abd281aeeaa6463fc870a3c86b3
-rw-r--r--vm/analysis/DexPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/analysis/DexPrepare.cpp b/vm/analysis/DexPrepare.cpp
index 38954030a..14e3732b9 100644
--- a/vm/analysis/DexPrepare.cpp
+++ b/vm/analysis/DexPrepare.cpp
@@ -1153,7 +1153,7 @@ static const u1* getSignature(const ClassPathEntry* cpe)
* If this changes, update DEX_OPT_MAGIC_VERS.
*/
static const size_t kMinDepSize = 4 * 4;
-static const size_t kMaxDepSize = 4 * 4 + 2643; // sanity check
+static const size_t kMaxDepSize = 4 * 4 + 2784; // sanity check
/*
* Read the "opt" header, verify it, then read the dependencies section