3632 Commits

Author SHA1 Message Date
Florian Märkl
7c0687b8fb Fix #12022 - Slow backtrace fixed by speeding up ptrace_wrap_func() ##debug 2018-11-20 01:13:30 +01:00
radare
5f270658c5
New RBin plugin for "symbols" files ##bin 2018-11-19 22:54:58 +01:00
Khairul Azhar Kasmiran
ef9ddac95e Simplify r_anal_fcn_add_bb() (#12226) 2018-11-19 21:09:27 +01:00
Ayman Khamouma (ak42)
4dede6866e Fix r_core_anal_graph_to and abt, abtj commands ##anal 2018-11-19 02:35:23 +01:00
pancake
712fca842c Improve the support for emscripten asm.js/wasm 2018-11-15 22:49:52 +01:00
lzutao
50320592a6 Fix #12060 and #12072 - Rewrite r_num_abs and r_num_units ##core
r_num_abs:

- Make r_num_abs static inline
- Use unsigned long long type when defining TB macro
- Use st64 instead of long long

r_num_units:

- Add len argument for buf in r_num_units
- Add PB and EB for r_num_units
- Always display one number after decimal point

  * This change simplifies the code
- Use long double type as assigning from ut64 to double cause data loss

r_num_tail_base:

- Use isxdigit (fast) instead of isHexDigit (slower)
- Rename nth to get_nth_nibble

Update all functions to use with new r_num_units:

- Remove side effect when using in other functions like cb_printf

* Trim trailing .0 when input is power of 2
2018-11-14 23:35:44 +01:00
Riccardo Schirone
37f547a6c5 Use R_BIN_TYPE_METH_STR instead of hardcoding the "METH" string 2018-11-14 17:30:38 +01:00
pancake
9556ebb1f9 More warning issues 2018-11-14 13:47:43 +01:00
bart1e
d0052385ee Fix #11552 - Implemlent r_cons_more and refactor some less.c ##visual
* Moved functions to pager_private.h + fixed style issues
2018-11-14 13:15:50 +01:00
pancake
1b7c0ccfe4 Fix build 2018-11-14 12:56:02 +01:00
pancake
19c2fb6443 Fix a shitton of warnings 2018-11-14 12:50:30 +01:00
pancake
2c22b3e54e Move btree into sdb's Attic 2018-11-14 12:33:25 +01:00
Artem Zinenko
4a2bc97a35 Fix #11918 - Moved r_print.h into r_util/r_print.h 2018-11-14 10:54:22 +01:00
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
90058945d2 Remove "referenced" from RBinObject and remove get_object ##refactoring 2018-11-13 13:05:18 +01:00
Paweł Łukasik
22ff13e069 Add dbg.verbose variable to show more info when debugging ##debug 2018-11-13 02:10:21 +01:00
Paul I
74b5421ed4 Fix gmtime_r for msvc ##windows 2018-11-13 00:24:23 +01:00
Paul I
9cfd75a4d7 Add gmtime_r() macro for msvc 2018-11-12 09:14:13 +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
dav1901
b6c3425610 Change void to RCore (#12125) 2018-11-12 00:03:06 +01:00
Khairul Azhar Kasmiran
68122dc27e Support overlapping basic blocks in anal.endsize ##anal
* af-* uses r_anal_del_jmprefs() instead
* anal.endsize supports overlapping basic blocks
* Further specify cond in r_anal_trim_jmprefs()
* Add x86 checks
2018-11-11 17:28:36 +01:00
Florian Märkl
8f03b2a42f Use quoted includes in r_crypto.h 2018-11-11 15:08:47 +01:00
pancake
59d7a92f8c Implement cmd.hexcursor feature ##visual
* Adds an RCoreBind in RPrint
2018-11-11 01:53:14 +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
radare
71053f17e9
Move trie, mixed, slist into Sdb's Attic, and DES from util to crypto ##refactor 2018-11-07 17:18:14 +01:00
David CARLIER
327fcfa9ed Little code simplification for ptrace/debug code. (#12077) 2018-11-07 11:32:18 +01:00
David CARLIER
9b3075b137 Support DragonflyBSD build and backtrace ##port
including backtrace support. the manpage mentions FreeBSD 10 release
and DragonflyBSD has different versioning, and radare not into
their port tree yet anyway, it might safe enough.
2018-11-07 00:31:00 +01:00
radare
de309af4d6
Another minor cleanup in RBin and add R_TIME helpers 2018-11-05 16:38:41 +01:00
Stefan Ilic
4e8eed0158 RBinSection now lives in the heap ##refactor 2018-11-05 11:52:40 +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
Khairul Azhar Kasmiran
a0844ef2c3 Honor anal.jmpmid in r_anal_fcn_bbget_in (fixes test and bug in pdr and graph) ##anal 2018-11-03 19:59:10 +01:00
Bet4
28fcfeb389 Fix some spawn args escape bugs ##debug
This reverts e973deadca3c6c417825bcb04b02e2a38202f143 commit dd4ad1137938f8dc99006c0489a7fdd4f4697ebf
2018-11-03 19:57:05 +01:00
sivaramaaa
bc4b5933d2 Improve array indexing in disassembly ##anal 2018-11-02 18:27:45 +01:00
Riccardo Schirone
6945016035 Small optimization and bugfix when auto-renaming functions ##anal
* anal/fcn: add function to RFlagSpace when adding it to RAnal
* make sure to add the flag in the right flagspace
2018-10-31 17:57:05 +01:00
Khairul Azhar Kasmiran
d2fe951130 anal.jmpmid: Continue analysis after jump to middle of instruction ##anal 2018-10-31 11:47:17 +01:00
radare
35a5c42a52
Add LL command to lock screen ##visual
* Clear terminal backbuffer
* Password not saved in command history
* Show timestamp of last attempt
* Do a random sleep after every read to avoid time attacks
* ^Z is disabled
* Can be used from shell `r2 -qcLL --`
2018-10-31 01:52:08 +01:00
fcasal
7117f2a76c Use fastcall in emustr on function calls ##disasm 2018-10-30 23:43:28 +01:00
Maijin
13bfc1e56f Remove unused functions in iosections ##refactor 2018-10-30 23:14:00 +01:00
Maijin
34abfd6d64
Remove all S commands ##refactoring 2018-10-30 13:23:18 +01:00
condret
57c9ab3da6 Fix zero interrupt issue ##esil 2018-10-30 13:05:18 +01:00
radare
5809cd3409
Use r_return_* in RAnal's cc and fcn ##refactor 2018-10-30 09:09:39 +01:00
radare
2f4e97d660
More code cleanup for RBin 2018-10-30 09:07:58 +01:00
radare
a96d85e0a8
Modernize RFlag with asserts, boolified and more ##refactor 2018-10-30 04:36:02 +01:00
a1ext
4e8e7de7b4 Fix unicode path issues in Windows ##windows 2018-10-30 01:04:47 +01:00
Maijin
583c7c95ba Fix #11947 and fix #11945 - Implement iS= and iSq. ##bin 2018-10-29 23:33:40 +01:00
pancake
cc643a2ab8 Update SDB from git 2018-10-29 22:15:47 +01:00
Riccardo Schirone
6080edf13b
Fix r_log when used for r_assert (#11971)
- Split r_log in r_vlog/r_log and make r_assert_log use r_vlog because it
needs to provide a va_list.
- Rename _r_internal_logging to r_log because that's a R_API function
and it needs a good name
- Make R2_CHECKS_LEVEL dependent on 'buildtype' option
- Make R_LOGLVL_WARN the default log level when in debug mode (default)
- introduce ASSERT_STDOUT macro to print assert failures to stdout
- use ASSERT_STDOUT in the Travis env with asan
- use list of callbacks in RLog instead of just one.
2018-10-29 11:48:12 +01:00
fcasal
9516fecbfe Close cpp #ifdef (#11974) 2018-10-28 15:53:47 +01:00
radare
4ac547cadd
Fix #11961 - /at swi for unconditional (or cswi) ##search (#11962) 2018-10-27 11:28:16 +02:00