summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhishek Arpure <aarpure@codeaurora.org>2013-12-06 17:20:26 +0530
committerSteve Kondik <shade@chemlab.org>2013-12-20 15:32:48 -0800
commit7600b1d84126704718606fec82865a98f24922ee (patch)
tree3b7331b499016b4613f127af92300da4e2f3e11d
parentff3989a9c0d2403eb3bbac3fa89a9ea001730725 (diff)
downloadandroid_dalvik-7600b1d84126704718606fec82865a98f24922ee.tar.gz
android_dalvik-7600b1d84126704718606fec82865a98f24922ee.tar.bz2
android_dalvik-7600b1d84126704718606fec82865a98f24922ee.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: I7e271ddf68d2b0d03081b03c395ac62d4e50ef0f CRs-Fixed: 573586
-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 b0147b3f2..707ac90e1 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 + 2448; // sanity check
+static const size_t kMaxDepSize = 4 * 4 + 2544; // sanity check
/*
* Read the "opt" header, verify it, then read the dependencies section