391 Commits

Author SHA1 Message Date
pancake
56f553b69a Honor anal.depth instead of harcoded value. Fixes aac in avr 2018-02-07 00:02:40 +01:00
sivaramaaa
d9e8c50e8d
Added warning msg for maxbbsz (#9230) 2018-01-22 17:57:55 +05:30
sivaramaaa
cffb7eba22
Drop ujump hacks (#9224)
* Drop ujump hack

* Remove anal.pltujmp config var
2018-01-20 19:48:51 +05:30
rene
fbee0b46b4 Fixes the zign tests, added anal.pltujmp var to config 2018-01-10 13:00:21 +01:00
pancake
bdbc2c5851 More cleanup and ritvization 2018-01-10 07:43:54 +01:00
Lowly Worm
55255e225a fix segfault in anal 2018-01-09 18:30:13 -08:00
Lowly Worm
76ea290f09 fix the build from b926122772dde207af3fed27be59c31003391485 2018-01-09 18:18:44 -08:00
pancake
b926122772 Use RInterval in io.cache and io.pcache, renaming and code cleanup 2018-01-10 02:35:11 +01:00
Rene Laemmert
0df2adbe09 First step in removing fcn->refs/xrefs (#9157) 2018-01-09 20:38:08 +01:00
Fangrui Song
0f2429e6ac Fix infinite loop/segfault in aab
r_anal_fcn_add_bb may be called with `fcn` in `anal->fcn_tree` or not.
If `fcn` is not in the tree, the insertion causes fcn_tree to no longer
reflect `anal->fcns`, which will cause problems later.
2018-01-04 19:37:07 +01:00
pancake
d26a27dfd2 Fix crash in aab because of rbtree 2018-01-03 02:28:15 +01:00
pancake
68f7e54d2e Fix build 2018-01-02 19:31:02 +01:00
pancake
df1f607191 Fix #8824 - Drop ujmp hack, lets investigate what breaks 2017-12-30 02:15:49 +01:00
Ziyaddin Sadigov
d4dd6fd5e6 Fix typo regarding byte size (#9067) 2017-12-27 18:33:58 +01:00
Khairul Kasmiran
6e7ecd4670 Update fcn_tree only if the fcn size changes 2017-12-23 22:35:57 +08:00
Khairul Kasmiran
e65cc4d422 afb+ now updates fcn_tree 2017-12-23 21:41:28 +08:00
Khairul Kasmiran
84e3786248 Fixed fcn_tree code when fcn size is 0 2017-12-22 20:55:27 +08:00
pancake
df4ddfc745 Fix last covs 2017-12-20 15:05:33 +01:00
Fangrui Song
97d53814f9 Add fcn_tree to RAnal (interval tree based on augmented red-black tree) and optimize r_anal_get_fcn_in (O(n) -> O(log n)) (#9034)
The long term plan is to phase out RAnal::fcns and migrate to RAnal::fcn_tree.
2017-12-17 22:55:32 +01:00
pancake
ce77004507 Update SDB and initial use of MHT for xrefs (disabled by default) 2017-12-11 18:00:14 +01:00
pancake
562cb02721 Fix #7309 - Add afCl to get an aprox count of loops in a function 2017-11-24 14:22:29 +01:00
pancake
b631199245 Remove 'anal error' noisy debug printf 2017-11-23 18:10:59 +01:00
Khairul Kasmiran
110158c3e3 af+ no-bb fix 2017-11-23 19:49:25 +08:00
pancake
2831aae633 Use r_tinyrange_in in r_anal_fcn_in and 2x visual disasm 2017-11-22 01:58:14 +01:00
Rene Laemmert
4644fd0e96 Fix deleting functions in projects (#8667)
After saving a project it was not possible to remove a function with 'af- <addr>' because the size was 0.
2017-10-09 13:25:25 +02:00
Sajjad Pourali
0d8a4b16b2 fix an always true condition in fcn.c (#8496)
* fix a always true condition in fcn.c

fcn.c:1080:17: warning: address of array 's->name' will always evaluate to 'true' [-Wpointer-bool-conversion]
                                if (s && s->name) {
                                      ~~ ~~~^~~~

* fix an always true condition in fcn.c
2017-09-13 10:52:55 +02:00
Fangrui Song
e472e74b9d Move {RAsm,RAnal}::addrbytes to RIO::addrbytes, delete asm.addrbytes and make cLEMENCy work again (#8432) 2017-09-04 21:41:09 +02:00
Khairul Azhar Kasmiran
137874aba2 Fix pdf function lines for Java methods (#8415) 2017-09-04 02:56:54 +02:00
pancake
559999dd7f Code cleanup and fix analysis regression in Java code 2017-09-02 01:57:13 +02:00
alvarofe
719612816d Fix jmptbl test 2017-08-30 23:04:40 +02:00
alvarofe
213cc1cdce Fix plt detection in analysis by using bin info 2017-08-28 16:44:51 +02:00
pancake
0afe0a1ba7 Avoid dupes in anal.jmptbl for analysis, speedup 2017-08-26 00:37:38 +02:00
alvarofe
3f33465e3f Nothing to see here:e 2017-08-24 02:10:20 +02:00
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