From 75c650017c2c27f73d49712eaba49a6508b775ed Mon Sep 17 00:00:00 2001 From: Tapas Pradhan Date: Thu, 27 Feb 2014 12:21:48 +0530 Subject: 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 --- vm/analysis/DexPrepare.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3