Home
last modified time | relevance | path

Searched refs:PatchInstruction (Results 1 – 9 of 9) sorted by relevance

/ohos5.0/base/security/code_signature/interfaces/innerkits/jit_code_sign/include/
H A Djit_buffer_integrity.h118 static inline int32_t PatchInstruction(JitCodeSignerBase *signer, int offset, Instr instr) in PatchInstruction() function
121 return signer->PatchInstruction(offset, instr); in PatchInstruction()
131 static inline int32_t PatchInstruction(JitCodeSignerBase *signer, in PatchInstruction() function
135 return signer->PatchInstruction(CAST_TO_BYTES(address), insn); in PatchInstruction()
H A Djit_code_signer_base.h44 virtual int32_t PatchInstruction(int offset, Instr insn) = 0;
49 int32_t PatchInstruction(Byte *jitBuffer, Instr insn);
H A Djit_code_signer_single.h34 int32_t PatchInstruction(int offset, Instr insn);
H A Djit_code_signer_hybrid.h34 int32_t PatchInstruction(int offset, Instr insn);
/ohos5.0/base/security/code_signature/test/unittest/
H A Djit_code_sign_test.cpp221 PatchInstruction(signer, offset, g_testPatchInstructionSet[j]);
449 PatchInstruction(signer, CAST_VOID_PTR(
478 EXPECT_EQ(PatchInstruction(signer, nullptr, INSTRUCTION_SIZE), CS_ERR_PATCH_INVALID);
481 EXPECT_EQ(PatchInstruction(signer, reinterpret_cast<Byte *>(g_afterPatchInstructionBuf),
693 EXPECT_EQ(PatchInstruction(nullptr, 0, 0), CS_ERR_NO_SIGNER);
694 EXPECT_EQ(PatchInstruction(nullptr, nullptr, 1), CS_ERR_NO_SIGNER);
728 … EXPECT_EQ(PatchInstruction(signer, INSTRUCTIONS_SET_SIZE_BYTES + 4, 1), CS_ERR_PATCH_INVALID);
730 EXPECT_EQ(PatchInstruction(signer, -INSTRUCTION_SIZE, 1), CS_ERR_PATCH_INVALID);
733 EXPECT_EQ(PatchInstruction(signer, CAST_VOID_PTR(reinterpret_cast<uintptr_t>(
736 EXPECT_EQ(PatchInstruction(signer, CAST_VOID_PTR(reinterpret_cast<uintptr_t>(
[all …]
/ohos5.0/base/security/code_signature/interfaces/innerkits/jit_code_sign/src/
H A Djit_code_signer_base.cpp79 int32_t JitCodeSignerBase::PatchInstruction(Byte *buffer, Instr insn) in PatchInstruction() function in OHOS::Security::CodeSign::JitCodeSignerBase
84 return PatchInstruction(static_cast<int>(buffer - tmpBuffer_), insn); in PatchInstruction()
97 int ret = PatchInstruction(offset + i, *insnPtr); in PatchData()
H A Djit_code_signer_single.cpp56 int32_t JitCodeSignerSingle::PatchInstruction(int offset, Instr insn) in PatchInstruction() function in OHOS::Security::CodeSign::JitCodeSignerSingle
H A Djit_code_signer_hybrid.cpp75 int32_t JitCodeSignerHybrid::PatchInstruction(int offset, Instr insn) in PatchInstruction() function in OHOS::Security::CodeSign::JitCodeSignerHybrid
/ohos5.0/base/security/code_signature/
H A DREADME_zh.md60 | int32_t PatchInstruction(JitCodeSignerBase *signer, int offset, Instr instr); | 更新缓冲区的偏移处指令签名 |
61 | int32_t PatchInstruction(JitCodeSignerBase *signer, void *address, Instr insn); | 更新对应地址指令签名 |