22 Commits

Author SHA1 Message Date
Riccardo Schirone
f77ecfb357 Upgrade SDB and use the new HtPP, HtUP, HtUU ##refactoring
* sdb-sync: update to commit ea05ca8808605daa683a2b35f143e24c3a70f0c9
2018-11-14 10:47:28 +01:00
Riccardo Schirone
a6a04332f8 Correctly allocate strings when filtering them ##bin
* bin/filter: correctly allocate strings when filtering them

Directly reallocate strings when filtering them, because it is very hard for
the caller to know before hand the correct size of the string otherwise. The
patch uses r_str_ APIs to makes this easy.
2018-11-12 00:04:41 +01:00
radare
d8269a9e2b
Use ht to query strings for the cfstrings ##bin
* Fix va/pa issue in cfstrings
* Add many more asserts and fixed some bugs with wrong use of apis
* 6x faster loading times for fruity apps
2018-11-07 23:57:24 +01:00
Riccardo Schirone
d6fd896a65 Remove other unused functions in RBin and make others static ##refactor 2018-11-07 10:52:32 +01:00
radare
de309af4d6
Another minor cleanup in RBin and add R_TIME helpers 2018-11-05 16:38:41 +01:00
Riccardo Schirone
936512916b Another RBin API cleanup ##bin
* remove R_API from functions not used outside of RBin module
* move not-exported functions to a separate private header
* move bin_private in i/private.h
* fix and use R_IPI
* fix mips_assemble
2018-11-05 11:25:31 +01:00
radare
2f4e97d660
More code cleanup for RBin 2018-10-30 09:07:58 +01:00
radare
d174f66f95
Refactoring and optimization for the RBin.language identification ##bin (#11944)
* More code cleanup and bring back bin.reload for the debugger
* Benchmark: swift: 23/9549 rcore: 17232/37147 (2-400x faster)
* For DVIA iOS app this is 1s less
* Demangle all the symbols, not just few
2018-10-27 05:01:09 +02:00
Riccardo Schirone
64d16fc506 Some code cleanup and asserts in RBin ##refactor
* libr/bin: no need to allocate RBinOptions on the heap
* bin: start using r_return_* around, that's just the beginning
* bin: remove io_owned since it's not used anywhere
* io: make r_io_bind return nothing
* bin: remove unused functions and simplify r_bin_load_io
r_bin_load_io was calling r_bin_load_io2 with UT64_MAX as sz parameter,
but r_bin_load_io2 just returns false if (st64)sz is less than 0, so
that call is actually useless and can be removed.
* bin/bin: fix some preconditions
* bin/open: fix precondition to check for bin and filename too
2018-10-21 01:27:15 +02:00
davidpolverari
f57a12d6cd Fix #11553 - Remove the R_NOTNULL bad practice ##refactor 2018-10-18 13:10:34 +02:00
pancake
4205cdabee Fix memory leaks in RReg 2018-10-16 00:17:44 +02:00
Florian Märkl
a5b3ff9486 Make izz more task-safe (#10373) 2018-06-17 15:12:54 +02:00
radare
6da28493f5
Initial work on using idpool+idstorage from RBin + initial new RBin.open() api (#10160) 2018-05-22 17:48:34 +02:00
mrmacete
7be0af355d Avoid calling RBinPlugin->classes() twice 2018-05-15 14:01:19 +02:00
pancake
1adac87918 Update sdb-1.1.0, update calls to sdb_fmt() 2018-04-10 23:52:47 +02:00
radare
dfcf6f745d
Initial transition to use RBuffer in RBin (#9787)
* Initial transition to use RBuffer.io in RBin

- Fixes loading Core files from Virtualbox (> 2GB ELF64)
2018-04-03 20:23:26 +02:00
pancake
8622d25947 Fix null deref in the class-method caching 2018-03-23 13:57:49 +01:00
pancake
5d59c32db0 Make aac run with O(1) instead of O(n+n*m) on files with class info 2018-03-23 13:51:47 +01:00
Oscar Salvador
62de01072f core-loading: Add support for arm32 2018-03-16 11:10:59 +01:00
Oscar Salvador
362184b722 Loading Core (x86, x86_64, aarch64) (#9669) 2018-03-15 11:46:07 +01:00
pancake
03ff82839d More code cleanup in RBin api for file and obj 2018-03-05 00:05:17 +01:00
pancake
0e692944a4 Refactor RBin for file and obj, mach0 headers to stdout
- Show CODESIGN load command offset+size
2018-03-04 23:52:45 +01:00