Commit Graph

101 Commits

Author SHA1 Message Date
sivaramaaa
08d9dfcfcd Added a few enhancment to struct offset propagation 2018-06-05 23:01:18 +02:00
sivaramaaa
8cc5f0216c Intial work on struct offset propagation 2018-05-31 19:05:54 +02:00
sivaramaaa
13da7c809c [WIP] Support RAnalop.dst/src in all archs (#10185)
* Intial work on supporting RAnalop.dst/src in all archs

* Fix struct offset for dst operand in ta command
2018-05-26 11:42:14 +02:00
pancake
4d133ff1f9 Use more heap in some places to avoid sdb_fmt corruptions 2018-04-25 12:30:57 +02:00
pancake
1adac87918 Update sdb-1.1.0, update calls to sdb_fmt() 2018-04-10 23:52:47 +02:00
Florian Märkl
93d9f4ec66 Add mask parameter to r_anal_op() 2018-03-16 11:10:15 +01:00
pancake
79bac9c5d7 Fix #2983 - double-free issue in Java.RAnalOp.cases switch 2018-02-04 12:42:42 +01:00
pancake
6b00784cb1 Add more priviledged arm64 instruction types and opcode descriptions 2018-01-08 11:21:48 +01:00
pancake
a62b33e939 Code cleanup for some var analysis code 2017-08-09 22:31:53 +02:00
pancake
74971add35 Honor MMX and SSE op.family for x86.cs 2017-05-22 00:56:24 +02:00
pancake
7722c0ae84 Implement opex for x86.cs 2017-03-10 20:05:28 +01:00
Álvaro Felipe Melchor
3593866c1b Fix NULL dereference in rasm2 2017-02-08 22:18:56 +01:00
Álvaro Felipe Melchor
05a4ed6607 Added new core binding to seek and set arch and bits
This born to handle arm/thumb since is a pain and we need to
track in which mode we are.
2017-02-07 23:58:35 +01:00
Álvaro Felipe Melchor
2ec6722bfe Handle f->bits as anal hints and blx/bx in aa/aae
This commit erases the need of ds->oldbits plus a few lines when handling
bits in disasm.

Moreover, the functionality that was introduced in disasm.c to switch
instruction set in arm when executing blx/bx, is now in anal loop
2017-01-19 21:53:02 +01:00
Marc
c585f91439 Dalvik analysis and bin parsing enhancements (#6320)
* Initial work to enhance the dalvik analysis with rbin info
* fix ptr addr in new-instance instruction in Dalvik Anal (#6082)
* dalvik anal:fix ptr addr in new-instance
* first ESIL instructions for Dalvik
* more ESIL instructions for Dalvik
* parse more data in dex format
* code refactor and several fixes
2016-12-15 00:14:33 +01:00
pancake
3cd649559e Honor hints in disasm, anal and emulation 2016-12-12 14:47:42 +01:00
pancake
2e040cd386 Fix #6147 - Force at least 1 byte of instruction for the zignatures 2016-11-23 11:31:39 +01:00
pancake
56f5c29d64 Fix asm.dwarf, add asm.dwarf.{file,abspath} 2016-11-22 23:59:04 +01:00
Sven Steinbauer
1a009d2865 Add support for it thumb instruction in esil (#6242)
Also fixes the flags in the register profile
2016-11-22 15:43:20 +01:00
pancake
3d1141ff7e Aim to fix an ao issue 2016-11-03 16:22:56 +01:00
pancake
589ac97bda Fix some overflow-related covs 2016-10-26 23:40:17 +02:00
pancake
bc9712daf4 Fix regressions 2016-10-20 20:59:03 +02:00
pancake
35d9eef757 Fix 20 more covs (divBy0, dbl3, negidx, bufovr, ..) 2016-10-20 15:39:36 +02:00
pancake
18ac22ea6e Fix #5872 - uninitialized free in pdj 2016-09-28 16:47:33 +02:00
saucec0de
c908e0f818 Fixing ds in x86 (#5802)
* Fixing ds in x86
* Several updates due to new OP_TYPE
2016-09-22 13:42:06 +02:00
pancake
1016708b14 Aim to fix that anal mayhem 2016-09-18 23:02:49 +02:00
pancake
42692477cf Fix regression introduced in last anal change 2016-09-18 22:20:46 +02:00
Álvaro Felipe Melchor
7df4fc3ce4 Fix some coverities 2016-08-24 22:02:38 +02:00
Álvaro Felipe Melchor
4b08d38cb1 more mem leak fixes 2016-06-29 10:11:25 +02:00
Álvaro Felipe Melchor
3cedcc1c4b Trying to fix memleaks (#5218)
* Trying to fix memleaks
* fix null dereference in r_anal_var_list
2016-06-28 23:14:16 +02:00
pancake
bfa8eb740a Optimize callconv and fix two bugs related to op_pos 2016-06-17 18:38:25 +02:00
pancake
fb3be2c58f Do not nullify RAnalOp after fini() 2016-06-17 15:52:57 +02:00
pancake
1629dd2b64 Remove two unused fields in RAnalOp and some deadcode 2016-06-17 14:26:24 +02:00
pancake
5c14841299 Support op->family and some op->cycle for anal.arm64 2016-06-16 01:43:41 +02:00
dx
58c5a333c0 Fix a few anal leaks (#5076)
Mostly sdb_get() calls turned into sdb_const_get(), but there are
others.
2016-06-03 15:33:08 +02:00
pancake
16d0396b8f Fix /A, add MJMP optype, and op.reg for UJMP 2016-05-30 00:38:35 +02:00
pancake
c36b299073 Fix some null deref and rarun2 chroot escape vuln 2016-05-24 12:32:45 +02:00
pancake
3d89f2cc21 Add RAnal.Stack.RESET and handle it for arm64 2016-05-11 12:59:32 +02:00
pancake
c01b5a6562 More memleak fixes 2016-04-04 00:52:45 +02:00
pancake
54fe1ae941 Fix uaf and another memleak 2016-04-04 00:36:18 +02:00
pancake
9d62ee0ddf Fix m68k.cs disassembler issue, honor asm.cpu in anal.m68k.cs 2016-03-24 16:21:49 +01:00
Álvaro Felipe Melchor
747699f712 remove stray error 2016-03-11 21:05:51 +01:00
Álvaro Felipe Melchor
4436e33ea5 check negative size on memcmp 2016-03-11 20:40:50 +01:00
Riccardo Schirone
fa2f6ba56e anal/op: fix get_used_var to really get the used local var in inst 2016-02-27 15:30:11 +01:00
pancake
36a61b6f10 Optimize a70caf7160 2016-02-24 18:09:30 +01:00
Jeffrey Crowell
a70caf7160 fix crash in r2 -A
crowell: http://jjdredd.github.io/petka2.exe
crowell: http://jjdredd.github.io/petka.bt.txt
2016-02-24 00:41:36 -05:00
pancake
1de0582257 Fix some more asm.decode nulls 2016-02-23 12:20:01 +01:00
Riccardo Schirone
e72f5ed0ae anal/op: add var field to RAnalOp to store the local used by op
anal: save writes/reades of vars/args and fix x86 stackop analysis
2016-02-23 02:35:47 +01:00
pancake
5d7421e355 Fix #4064 - asm.decode (null) issue 2016-02-22 23:21:29 +01:00
Riccardo Schirone
f651209623 core/reflines: start cleaning up the code 2015-11-07 11:23:31 +01:00