OSDN Git Service

Throw an exception instead of aborting in DexFile.
authorAndy McFadden <fadden@android.com>
Tue, 4 Aug 2009 19:09:29 +0000 (12:09 -0700)
committerAndy McFadden <fadden@android.com>
Tue, 4 Aug 2009 19:14:05 +0000 (12:14 -0700)
commitdbedb4e578f9376483fb531978a772693400cdf9
treed5432c89b643259e535083612ce7dc7df762f7d5
parent46dd16c8bf4f0732fc76cb38b13412c042394473
Throw an exception instead of aborting in DexFile.

If presented with an invalid DexFile cookie -- perhaps because somebody
called DexFile.close() twice -- the VM would unceremoniously abort.
This was reported as a bug (external #2443).  We now throw a simple
exception.

For internal bug 1794406.
vm/native/dalvik_system_DexFile.c