385 Commits

Author SHA1 Message Date
Giovanni
43532031c4 Fixes for windows and some are also global (#6936) 2017-03-08 08:49:31 +01:00
Nevsor
4fe2a01f74 use op.stackptr instead of op.val for stack frame size guessing. (#6933) 2017-03-08 08:44:34 +01:00
Francesco Tamagni
9c329d6c62 Fix stackptr regression (#6822) 2017-02-20 14:20:44 +01:00
Álvaro Felipe Melchor
fd2f2b92ce Minor refactoring a2f 2017-02-15 22:26:03 +01:00
pancake
bb2859250d Aim to fix issue with huge stackframes 2017-02-10 00:02:18 +01:00
pancake
bd25a763d8 Fix null deref and infinite loop when building with no plugins 2017-02-02 13:25:21 +01:00
mrmacete
d50ba765eb Fix #4554 stackptr calculation on pdr and graph
- blocks have their stackptr
- inherit from parent when visited hierarchically (in pdr and graph)
- add the global anal->stackptr as a starting value for disasm, defaults to 0
2017-01-31 13:06:26 +01:00
pancake
37e79b3ba1 Implement afvR and afvW to list var read/write accesses 2017-01-25 00:06:44 +01:00
pancake
1ccec279bc Ignore nopskip if there's a flag 2017-01-23 23:19:11 +01:00
pancake
431aa374c5 mach0 imports stubs force nopskip=false and behaves like the plt 2017-01-23 23:13:51 +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
pancake
7bb7ec1e42 Fix #6473 - Show function cost information in afi, aflj and afll 2017-01-13 23:08:37 +01:00
pancake
c645fc0aa4 Add afcc and use afc to sum cycles in a function 2017-01-10 01:30:48 +01:00
pancake
5dc4d4feb1 Add help for afbe and use eprintf for jmptbl for now 2016-12-29 04:30:54 +01:00
pancake
dc0e8ff820 Initial support for analyzing and graphing generic switch tables 2016-12-29 03:34:16 +01:00
pancake
b1a06b88fd Fix memleaks in disasm, speedup fcn_in and honor zoom in graph again 2016-12-19 23:42:05 +01:00
pancake
50d73d1547 Fix a lot of memleaks, null derefs and undef behaviour thanks to clang-analyzer 2016-12-19 16:44:51 +01:00
pancake
4734202165 Fix dupes in aflj 2016-12-12 23:02:11 +01:00
Álvaro Felipe Melchor
dca3bf8602 handle better data references 2016-12-05 20:07:32 +01:00
pancake
72e874c2ac Fix noreturn issue introduced with the flag_get_at aproximation 2016-12-01 10:48:00 +01:00
Álvaro Felipe Melchor
dbd3609615 Fix regression due to 3e3f098413aa
in fcn.c anal->cpu was used instead of anal->arch
2016-11-16 17:42:23 +01:00
pancake
7fc002dfd9 Remove unnecessary call to impaddr() and some reindents 2016-11-13 01:40:44 +01:00
pancake
6ff015ce29 Fix #6098 - Simplify cyclomatic complexity calculation 2016-11-07 02:55:27 +01:00
pancake
e7009d9be2 Fix #6075 - Add CCf to list all comments in current function 2016-11-06 01:40:51 +01:00
Álvaro Felipe Melchor
1f4a0bcd4b Fix regression in visual graph mode 2016-11-02 13:21:21 +01:00
Álvaro Felipe Melchor
f40328b89a some cleanup and update r_core_anal_get_bbaddr 2016-11-01 23:52:42 +01:00
Álvaro Felipe Melchor
3ad519acac update bb tinyrange through afb+ 2016-11-01 18:36:09 +01:00
Álvaro Felipe Melchor
a2befc8adc Enhance performance in r_anal_fcn_get_in() using tinyrange and sorted adds
* added sorted parameter in r_list
* use r_list_sort in r_range_sort
* some clean up
* added is_data into RBinSection
* use tinyrange by default to improve speed
2016-10-25 01:12:06 +02:00
Marc
65af037198 Fix Dalvik imports and symbol ordinals 2016-10-11 14:28:46 +02:00
pancake
c1b4cd666f Do not run aav in aa on ARM 2016-10-05 16:01:16 +02:00
pancake
3c22cbfa7c Fix #5890 - Assume pushed executable addresses as CODE references 2016-10-04 21:03:11 +02:00
Álvaro Felipe Melchor
8cbfaf8dbc Fix NULL dereference in search_reg_val 2016-10-02 02:10:37 +02:00
radare
1923ee74ef Fix #5698 - Support memrefcalls in xrefs and hotkeys common on w32 bins 2016-09-26 23:13:49 +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
Sven Steinbauer
2996538700 Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +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
pancake
997455fe5f Fix format string in fcn.c 2016-09-18 22:11:35 +02:00
pancake
d4ea3b2277 Fix #5642 - bring back the old afb behaviour 2016-09-14 16:42:23 +02:00
Paul
10db9ed827 pdf/pdr/anal fix (#5709) 2016-09-09 19:28:47 +02:00
Paul
30a0987c0a Various analysis enhancements
* Updated anal.nonskip is updated
* Possible infinite recursion fix
* anal.hpskip is added (false by default)
* mips fix; build fix; flag_exist_at callback is added
* nopskip fix
* asm.leahints fix
2016-09-05 20:42:04 +02:00
pancake
4f1c50f7f5 Code cleanup and reindent in visual/core 2016-08-23 03:02:23 +02:00
pancake
fd0810fbf1 Fix memleaks in av, lot of anal code cleanup and do not always allocate bb->diff 2016-08-22 18:32:18 +02:00
pancake
1a561b62ce Drop that speedup analysis 2016-08-21 12:10:44 +02:00
pancake
2390075946 Try the JAYRO_04 patch to speedup analysis 2016-08-21 11:39:37 +02:00
pancake
56844d68f3 Rollback the tinyrange optimization 2016-08-21 03:07:19 +02:00
pancake
1bdb2c9f93 Add and use tinyrange.c: get 10% speedup in analysis 2016-08-21 01:41:03 +02:00
Ahmed Mohamed Abd El-MAwgood
ad1565d9e4 few enhancements for afv FIX #5459 (#5461)
replacing afv[bsr]n  with afvn
replacing negative sign `n` with `_`
being consistent across the documentations (args + locals = vars)
refactoring code
2016-08-09 00:17:42 +02:00
pancake
a4ff60743f Follow fcn calls one step further WIP 2016-08-07 09:17:05 +01:00
pancake
4a190d770c Some anal cleanup and aim for the fwdjmp bb issue 2016-08-01 18:41:07 +02:00