summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTapas Pradhan <tpradhan@codeaurora.org>2014-06-18 19:34:41 +0530
committerSteve Kondik <shade@chemlab.org>2014-07-22 12:05:56 -0700
commitd875332d8fe5e57b93a6331959c856467e0ce9d3 (patch)
treea8544cac69fe65c1496ee17d4c72900d832fd1d4
parent96de38b6cef879b320e619b8946c2833d4e14179 (diff)
downloadandroid_dalvik-d875332d8fe5e57b93a6331959c856467e0ce9d3.tar.gz
android_dalvik-d875332d8fe5e57b93a6331959c856467e0ce9d3.tar.bz2
android_dalvik-d875332d8fe5e57b93a6331959c856467e0ce9d3.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: I6d8d79be2f400585fb89382b1923f2a0494b4393 CR:681070
-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 61d579701..753b6fee0 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 + 3056; // sanity check
+static const size_t kMaxDepSize = 4 * 4 + 3200; // sanity check
/*
* Read the "opt" header, verify it, then read the dependencies section