427 Commits

Author SHA1 Message Date
Florian Märkl
dcf0c7049f
Chop Basic Blocks instead of re-analyzing in noreturn propagation (#16612) 2020-04-17 19:51:47 +02:00
pancake
24b5584bef Fix large aae 2020-04-13 23:28:34 +02:00
pancake
14a2e6ddba Fix infinite loop in aae - check if address is valid ##anal 2020-04-13 20:05:03 +02:00
pancake
dd28fec830 Fix infinite aav issue spotted in bins/fuzzed/hang_09.dms 2020-04-13 20:05:03 +02:00
Paul I
7743d5e829
If possible use symbol name instead of entry name for function name (#16528) ##anal 2020-04-12 20:40:05 +02:00
Florian Märkl
082fb723df
Remove unused RAnalFunction Members (#16521)
* Remove unused RAnalFunction Members
* Kill more code
* Reintroduce temporary nargs=4
2020-04-12 20:17:45 +08:00
Florian Märkl
9a2effd5ed
Use RPVector for io->maps - speedup map traversal ##io
- The 64K section bin now loads in 15s instead of 26s
2020-04-07 12:43:41 +02:00
pancake
38b8d5929d
Fix #16413 - Analyze code refs spotted with aae ##anal (#16423)
- Find 600 functions in a MIPS binary, without this only 4 functions are found
2020-04-05 22:36:43 +02:00
radare
9f35d62018
Improve noreturn and aesu times, show it in afi & afij ##anal (#16324)
* Fix fcn->is_noreturn cache and add tests
2020-03-27 06:15:47 +01:00
radare
d410ceacc7
Fix #16308 - Add fcn arg in r_core_anal_propagate_noreturn to avoid O(n) in af ##anal 2020-03-27 05:31:23 +01:00
pancake
32580864ff Code cleanup and refactoring for analysis 2020-03-23 09:26:20 +01:00
Florian Märkl
cbbe0188c3
Remove unused cmpfcn function and a useless var (#16242) 2020-03-17 15:11:16 +01:00
radare
66ed0133e2
Initial r_anal_fcn_* purge (#16238) ##refactor 2020-03-17 12:58:39 +01:00
pancake
2edd5c1468 Fix #16225 - Remove the unused fcn_locs causing an UAF ##anal 2020-03-17 03:26:45 +01:00
radare
56e21e4ac1
Fix one memleak (#16199) 2020-03-12 15:09:31 +01:00
radare
9e11962425
Fix #16169 - Avoid (null) printf in afi* (#16177) 2020-03-10 14:05:53 +01:00
radare
5e629a3260
Avoidify the strTrim() APIs + cleanup/refactor ##util (#16056) 2020-03-02 21:39:37 +01:00
radare
6ae8806411
Do not use the elvis operator for bool expressions (#16073) 2020-02-28 15:19:37 +01:00
radare
a836f9c694
Fix 'af' missing lines bug when analyzing in frida://0 ##anal (#15953)
* Boolify try_walkthrough_jmptbl
* Add R_ANAL_RET_NOP constant
* Add test case
2020-02-27 12:28:58 +01:00
Anton Kochkov
9ae41ae69f
Revert "Avoidify the RUtil.strTrim() APIs, rename trimHeadTail() and add asserts in RConfig ##refactor" (#16055)
This reverts commit 38b61c7bcfe55a727b9c3cedbc0f3147018e7c6b.
2020-02-26 09:59:04 +08:00
radare
38b61c7bcf
Avoidify the RUtil.strTrim() APIs, rename trimHeadTail() and add asserts in RConfig ##refactor 2020-02-25 17:53:09 +01:00
XYlearn
9e85a9201a
Fix address representation minbound maxbound in afij (#16051) 2020-02-25 15:54:40 +01:00
Paul I
b2ece18876
Fix sdb API usage to avoid extra strdup() (#16028) 2020-02-23 11:49:37 +01:00
radare
7c115b1eda
Fix last covs (#15976) 2020-02-14 17:30:34 +01:00
abcSup
7ca08bf6b9 Add support for self, error register argument (Swift) 2020-02-14 07:59:41 +01:00
Florian Märkl
a5e11a3f55
Refactor Anal Hints (#15876) ##anal
* Use RVector for Address Hints
* Add Arch/Bits Hint Trees
* Add Unit Tests for Addr, Arch and Bits Hints
* Add unset for newbits
* Fix jmptbl hint fetching
* Fix r_anal_*_bits_foreach
* Print grouped Anal Hints
* Fix arch bit affect on disasm
* Add Reset Hints to Commands
2020-02-13 11:48:24 +01:00
Florian Märkl
11dad4facb
Remove unused Function Tree and Fix Relocate (#15898) 2020-01-26 00:07:54 +01:00
Florian Märkl
020bcb7d37 Fix #15091 - Make 0 fcnsize warning more meaningful and verbose-only (#15866) ##anal 2020-01-20 17:39:41 -05:00
Anton Kochkov
d0a915458a Coverity fixes 2020-01-19 20:37:29 +08:00
Florian Märkl
3ead80cca8 Remove Custom Analysis for Java (#15817) ##anal 2020-01-16 11:25:49 +01:00
Florian Märkl
14215350af Refactor RAnal Basic Blocks and Functions (#15169) ##anal
Basic Blocks are now global instead of owned by a single function.
2020-01-15 15:23:34 +01:00
Florian Märkl
5bb7e28ad4 Change RAnalBlock.size to ut64 ##anal 2020-01-15 15:23:34 +01:00
Anton Kochkov
b4de5c5113 Some more coverity fixes (#15802) 2020-01-14 12:57:34 +01:00
Itay Cohen
29c1344ff3 Improve realname support for symbols (#15702) ##bin
* Initial implementation of libname for flags in imports
* Initial support for PE and real flag
* Read libname for PE exports
* implement pj for imports
* Remove imp. prefix from symbol names
* Fix r_core_bin_impaddr()
* Fix some mdmp import stuff
* Print libname in ii
* Fix some imp. checks and reloc meta
* Fix r_bin_filter_sym() for imports
* Use realname for noreturn check
* Fix asm.flags.real for direct calls
* Fix realname for direct calls with fcn
* Fix resolving names from ordinal

Co-authored-by: Florian Märkl <info@florianmaerkl.de>
2020-01-12 03:09:12 +01:00
Florian Märkl
cdbcffe108 Remove dupped basic block analysis in core (#15714) ##anal 2019-12-28 12:37:48 +01:00
Florian Märkl
f13802b4f8 Remove RAnalBlock members only used in Java (#15679)
* Remove RAnalBlock members only used in Java
* Remove R_ANAL_BB_TYPE_(HEAD|BODY|LAST|FOOT)
* Fix a Test
* Fix afb+ help
2019-12-22 06:38:38 -06:00
radare
31c100c7eb
Some more helpful messages for anal.verbose ##anal 2019-12-16 12:03:11 +01:00
Florian Märkl
5870b5df85 Fix Alignment Check in aae on bit change 2019-12-15 23:36:44 +01:00
GustavoLCR
56d8a0b233 Improve SP based var analysis ##anal
* Name variables based on their offset from the start of the stack frame

* Fix tests
2019-12-10 00:15:25 +01:00
Florian Märkl
e0c3996321 Make Task Scheduling Explicit (#15511) ##core 2019-11-27 16:05:59 +01:00
erfur
ac84c4ee2f Some fixew for the graphviz code (#15470) 2019-11-16 11:26:19 +01:00
Khairul Azhar Kasmiran
ed0873e2f7 Fix leaddrs leak (#15417) 2019-11-05 17:02:02 +01:00
SjRNMzU
0dad5d2a05 Analyse HIOS and LOOS symbol types by default. (#15411) ##bin 2019-11-05 02:58:28 +01:00
pancake
cc7f17dec0 Fix build 2019-10-28 10:39:49 +01:00
pancake
5c3bd9fd47 Bring back the MASK_DISASM because not all nanal plugins support it yet 2019-10-28 10:16:44 +01:00
pancake
a019caadcc Add the r_anal_fcn_rename() function 2019-10-25 19:49:53 +02:00
radare
528edceaea
Fix #15315 - Honor RAnalOp.disp in aar and ao ##anal 2019-10-23 15:49:54 +02:00
Florian Märkl
80c74d7aa7 Replace r_str_const* with RStrConstPool (#15300)
* Add RStrConstPool

* Replace RAnal.consts with RStrConstPool

* Remove useless r_str_const() calls

* Kill more r_str_const()

* Remove r_str_const() from Java

* Remove r_str_const() from Canvas

* Remove r_str_const() from mach0

* Remove r_str_const() from PE

* Kill r_str_const* completely
2019-10-20 12:31:45 +02:00
Florian Märkl
da18e5aadc Make RAnalFunction.cc come from RAnal String Pool ##anal (#15281) 2019-10-15 15:53:05 +02:00
radare
30e737356f
Deprecate the use of anal plugins that doesnt handle mask.disasm ##anal (#15262) 2019-10-13 22:47:39 +02:00