27 Commits

Author SHA1 Message Date
radare
4015956119
Initialize GP on MIPS when no symbols found with ESIL ##anal 2019-04-14 15:50:27 +02:00
Khairul Azhar Kasmiran
a478cdfc5f bin.str{purge,filter} -> bin.str.{purge,filter} ##core 2019-03-19 17:34:59 +01:00
radare
ebc1ccabc8
Fix #13391 - issues when using file:// and ood together ##debug 2019-03-16 20:46:11 +01:00
David CARLIER
3cff12a7c0 Add iF to show file hash and related refactoring ##bin 2019-01-24 17:34:00 +08:00
pancake
46fb9a6b46 Minor cleanup 2019-01-04 14:05:36 +01:00
dav1901
f24556c189 Fix few clang-analyzer warnings (#12548) 2018-12-24 01:18:12 +01:00
radare
769bb3b005
Fix #12333 - NSO not working and a bunch of UB in arm64 ESIL (#12379) 2018-12-03 01:19:59 +01:00
Bet4
8f2f9de1f3 Make ood use absolute path
Fixes #12167
2018-11-15 14:38:43 +01:00
Riccardo Schirone
90058945d2 Remove "referenced" from RBinObject and remove get_object ##refactoring 2018-11-13 13:05:18 +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
08e5b4aaad Refactoring RBin.open/close and RBinOptions ##bin
* r_bin_close should be r_bin_file_close
* moved bin/open.c into bin.c
* set BinFile id in r_bin_load_io
* use r_bin_open_io instead of r_bin_load_io
* also prefer RBinOptions instead of multiple arguments
* rename r_bin_load to r_bin_open and use RBinOptions
2018-11-07 17:22:41 +01:00
David CARLIER
11127f0c76 Minor code cleanup for BSD 2018-11-07 00:34:16 +01:00
Riccardo Schirone
6115f00455
remove r_bin_load_io2 and rename MODE defines ##refactor
PR #11888 

* bin: no need for 2 r_bin_load_io APIs
* bin: remove io-related unused functions
* r_bin.h: remove some old comments
* r_bin.h: group together related APIs
* extract print/set modes in r_types, to remove dups in r_bin and r_core
* clang-format-diff: fix ternary operator indent for pancake
2018-10-24 16:54:57 +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
pancake
4205cdabee Fix memory leaks in RReg 2018-10-16 00:17:44 +02:00
Stefan Ilic
a061c504cf Fix leak in cfile (#11809) 2018-10-14 17:37:45 +08:00
pancake
786feaa80b Fix one crash and one assert in the graph and remove one useless warning 2018-10-04 16:12:32 +02:00
radare
9e9dd12a4c Delete nowarn (#11694)
* NYI means not-yet-implemented
* Kill file.nowarn configuration variable
2018-10-01 15:55:08 +08:00
pancake
41ec949204 Fix #11112 - Rename {srwx,flags,perms} to perm. (-21 LOC)
Unify R_IO, R_BIN, R_BP, .. into R_PERM_* using 1 letter syntax
2018-09-22 11:31:45 +02:00
pancake
885f9efeb0 Fix last covs and add $e{} in RNumCallback 2018-09-13 11:16:27 +02:00
Neven Sajko
4a722e80d8 Add braces to if, else, for, while ... (#11504) 2018-09-13 10:17:26 +02:00
Khairul Azhar Kasmiran
95f75f3aa9 cmd.load: Run when binary is loaded (#11483) 2018-09-12 23:12:52 +02:00
Michael Scherer
03b449c099 Fix #11454 - Evaluate va before applying workaround for raw binaries (#11463)
In 764a3cc, the code got moved upper, but one case got forgotten,
since it did depend on va to be updated before, which wasn't moved.
2018-09-10 14:52:00 +02:00
Riccardo Schirone
be8ece36a7 io: make r_io_map_new always update skyline
keep a "private" version, named io_map_new, which can be called by the
io module for performance reasons (e.g. loading many maps, you don't
want to sync the status every time when you can do that only one time at
the end of the batch insertion).
2018-09-03 11:18:10 +02:00
Neven Sajko
d8784641ee Add parentheses in macros where needed for safety (#11290) 2018-08-30 13:16:50 +02:00
Fangrui Song
764a3ccbcb Fix fatmacho tests
The map [0, r_io_desc_size) (if exists) should have the lowest priority (be inserted first) so we move it here from the bottom.
2018-08-26 02:02:02 +02:00
pancake
26d50c31da Fix memleaks in RBin 2018-08-19 16:39:55 +02:00