alvarofe
38f60907ed
Fix check in must_eob
2017-08-24 02:00:33 +02:00
alvarofe
6cb10fa635
Change && for || and s/size/vsize in must_eob fcn_recurse
2017-08-24 01:23:04 +02:00
alvarofe
61537ba5ab
Fix NULL dereference
2017-08-23 23:30:57 +02:00
alvarofe
6561932f99
Fix a little bit analysis
2017-08-23 22:37:29 +02:00
condret
0161fa0ec2
make read_at bool again and implement RIOAccessLog for accurate error-handling
...
This reverts commit a9bf4aae2bdca2c139f482c3f0e098fe6ece1ee0.
2017-08-22 17:24:04 +00:00
Fangrui Song
a9bf4aae2b
Misc fixes to siol ( #8262 )
...
* Fix onIterMap (divide-and-conquer like USACO Shaping Regions), check return values of every `op` call
* Change return types of r_io_read_at and friends back to `int`
* Fix some analysis tests and others
* Fix mem leaks
2017-08-22 10:46:48 +02:00
condret
2f201bded0
opsalamance - merge the big siol branch
...
- Thanks @MaskRay and @condret
2017-08-22 09:42:16 +02:00
pancake
a62b33e939
Code cleanup for some var analysis code
2017-08-09 22:31:53 +02:00
Fangrui Song
f91e3d259c
Add asm.addrbytes
eval config var to make one vaddr unit use more than 1 bytes ( #8121 )
...
* Add `asm.addrbytes` eval config var to make one vaddr unit use more than 1 bytes
* Use `asm.addrbytes` in anal/disasm
2017-08-05 12:20:17 +02:00
Álvaro Felipe Melchor
2cc456fc76
Fix function detection with NOP ( #7691 )
2017-06-07 01:53:59 +02:00
pancake
4bd1d0d9cd
Introduce the anal->cmdtail and enhance anal.jmptbl with it
...
* Reduce false positives of switch tables detection
* Add flags for the jmptable, the cases and the bb using it
* cmdtail introduces some recursivity problems that may be fixed using the api more c
* Increased CMD DEPTH from 10 to 100
2017-05-23 23:55:22 +02:00
xarkes
926f024909
Improved MSVC support (WIP)
2017-05-09 14:25:57 +02:00
radare
08429062f2
Fix inPLT check for function analysis
2017-05-08 03:51:36 +02:00
pancake
d0d235423a
Remove asm.spacy and integrate the logic into asm.bbline when no fcn is found
2017-05-05 12:48:52 +02:00
pancake
0ac3477662
Use r_str_const to avoid dangling calling conventions in fcn->cc
2017-05-04 14:52:43 +02:00
pancake
5433af7cb0
Fix build and several queues covs from previous analysis
2017-04-26 12:47:27 +02:00
Álvaro Felipe Melchor
13c91127af
Fix minor issues by clang-analyzer ( #7303 )
2017-04-18 14:03:42 +02:00
pancake
a66cc10d46
Fix a huge list of null derefs from clang-analyzer
2017-04-17 22:02:04 +02:00
pancake
4bd931731b
Add arm-ios-{16,32,64} noreturn function types and enhance tail call analysis
...
- In addition JMP to imports are considered end of function
- Add iOS arm/thumb noreturn function type definitions
2017-04-12 03:16:59 +02:00
alvarofe
f4448ebfaf
Fix r_list_merge_sort to avoid stack exhaustion
2017-03-27 00:52:09 +02:00
Roi Martin
1425fd4418
Implement metric zignatures management
2017-03-18 11:33:30 +01:00
Álvaro Felipe Melchor
e8f80a165c
Remove fcn->vars and reindent anal/fcn.c var.c and flirt.c
2017-03-09 23:46:02 +01:00
oddcoder
43b1530ffc
fixing confusion between stack and maxstack ( #6959 )
2017-03-09 14:23:41 +02:00
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