Commit Graph

91 Commits

Author SHA1 Message Date
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
pancake
92f4e72228 Fix infinite analysis for archs without anal plugs 2015-11-05 16:51:36 +01:00
jvoisin
1d485ea927 coverifix 2015-10-19 23:31:36 +02:00
pancake
b111057798 Fix #3505 - analyze cmovs a bit 2015-10-18 22:14:06 +02:00
condret
fe18c8b1ef avr_anal esil-expression for des 2015-10-15 18:05:47 +00:00
condret
8d2f6a4595 avr_anal 7 more instructions with cycles and esil 2015-10-15 00:24:23 +00:00
pancake
42bc18703a Implement asm.pcalign and min/max opsize info 2015-10-14 02:11:53 +02:00
pancake
47cec917b2 Add asm.family 2015-10-03 13:52:52 +02:00
pancake
8eb71af9ed Internal reg prefix is now $, 85008 for curpc, TRAP for traps 2015-09-14 11:31:54 +02:00
pancake
d2233a896b Add de Debugger Esil API for advanced software watchpoints
- Implemented in r_debug_esil_* APIs
- Support for step-into and continue
- Expressions can be regs, numbers, math operations, ranges, comparisons..
- Honor dbg.prestep for stepping before or after analysing
- read-write-exec watchpoints using native debug backend and esil emulation
- OSX/iOS debugger error message is now nicer
- anal/rpnesil renamed to esil
- Add esi,edi in osx regprofile
- Add r_cons_is_breaked() for consistency
2015-07-21 06:11:42 +02:00
pancake
e147a21be9 Fix some of the alloc-check bugs reported in #2772 2015-06-17 12:36:08 +02:00