Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
matbrik committed Sep 24, 2024
1 parent 5d47892 commit a44980e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/android.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ function _getApi () {

// Android < 6 for cloneArtMethod()
_ZN3art6Thread14CurrentFromGdbEv: ['art::Thread::CurrentFromGdb', 'pointer', []],
_ZN3art6mirror6Object5CloneEPNS_6ThreadE: function (address) {
this['art::mirror::Object::Clone'] = new NativeFunction(address, 'pointer', ['pointer', 'pointer'], nativeFunctionOptions);
_ZN3art6mirror6Object5CloneEPNS_6ThreadE: function (address) {
this['art::mirror::Object::Clone'] = new NativeFunction(address, 'pointer', ['pointer', 'pointer'], nativeFunctionOptions);
},
_ZN3art6mirror6Object5CloneEPNS_6ThreadEm: function (address) {
const clone = new NativeFunction(address, 'pointer', ['pointer', 'pointer', 'pointer'], nativeFunctionOptions);
Expand Down Expand Up @@ -3930,11 +3930,9 @@ function makeArtThreadStateTransitionImpl (vm, env, callback) {
let exceptionClearImpl = envVtable.add(ENV_VTABLE_OFFSET_EXCEPTION_CLEAR).readPointer();
const nextFuncImpl = envVtable.add(ENV_VTABLE_OFFSET_FATAL_ERROR).readPointer();
if (Process.arch === 'arm64') {
const base = exceptionClearImpl;
const size = 0x150;
const pattern = "c0 03 5f d6"; ///ret
var res = Memory.scanSync(base, size, pattern)
if(res.length > 0){
const pattern = 'c0 03 5f d6'; // ret
if (Memory.scanSync(exceptionClearImpl, size, pattern).length > 0) {
exceptionClearImpl = envVtable.add(ENV_VTABLE_OFFSET_EXCEPTION_CLEAR_ALT).readPointer();
}
}
Expand Down

0 comments on commit a44980e

Please sign in to comment.