summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTapas Pradhan <tpradhan@codeaurora.org>2014-02-27 12:21:48 +0530
committerSteve Kondik <shade@chemlab.org>2014-03-21 18:32:48 -0700
commit6fa44136a9a8df0f83c6c4d6e85a022ca9ff8b9e (patch)
tree7586b6326b32cbd5cc68fd0eaf3066ffa5b1658d
parentcdf7a375a8e44fad85e90e7234e561088b20a897 (diff)
downloadandroid_dalvik-6fa44136a9a8df0f83c6c4d6e85a022ca9ff8b9e.tar.gz
android_dalvik-6fa44136a9a8df0f83c6c4d6e85a022ca9ff8b9e.tar.bz2
android_dalvik-6fa44136a9a8df0f83c6c4d6e85a022ca9ff8b9e.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: I63119dc3e45df19910ae70cedad6109075672d6e
-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 707ac90e1..38954030a 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 + 2544; // sanity check
+static const size_t kMaxDepSize = 4 * 4 + 2643; // sanity check
/*
* Read the "opt" header, verify it, then read the dependencies section