We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4659a6d commit 3e0bd97Copy full SHA for 3e0bd97
1 file changed
lib/android.js
@@ -800,7 +800,32 @@ function tryDetectInstrumentationPointer (api) {
800
}
801
802
function parsex86InstrumentationPointer (insn) {
803
- return null;
+ if (insn.mnemonic !== 'mov') {
804
+ return null;
805
+ }
806
+
807
+ const ops = insn.operands;
808
809
+ const dst = ops[0];
810
+ if (dst.value !== 'rax') {
811
812
813
814
+ const src = ops[1];
815
+ if (src.type !== 'mem') {
816
817
818
819
+ const mem = src.value;
820
+ if (mem.base !== 'rdi') {
821
822
823
824
+ const offset = mem.disp;
825
+ if (offset < 0x100 || offset > 0x400) {
826
827
828
+ return offset;
829
830
831
function parseArmInstrumentationPointer (insn) {
0 commit comments