android art genertate verification errors,how to

17 views Asked by At

I want test function of art verification . So,I want Create intentionally triggering code for ART virtual machine verification errors,how to do it The relevant code for the verification logic is as follows

insn_flags_.reset(new InstructionFlags[code_item_->insns_size_in_code_units_]());
// Run through the instructions and see if the width checks out.
bool result = ComputeWidthsAndCountOps();
// Flag instructions guarded by a "try" block and check exception handlers.
result = result && ScanTryCatchBlocks();
// Perform static instruction verification.
result = result && VerifyInstructions();
// Perform code-flow analysis and return.
result = result && VerifyCodeFlow();
// Compute information for compiler.
if (result && Runtime::Current()->IsCompiler()) {
  result = Runtime::Current()->GetCompilerCallbacks()->MethodVerified(this);
}

Here is some relevant information I was able to gather

Android - Verification failed on class ART / Dalvik

How to Generate INVOKE-POLYMORPHIC opcodes in Dalvik

0

There are 0 answers