1005 Commits

Author SHA1 Message Date
dav1901
97b94b3f94 Fix more clang warnings (#12458) 2018-12-12 12:22:36 +01:00
dav1901
024d65e288 Fix few more clang warnings (#12429) 2018-12-11 10:28:01 +01:00
dav1901
d067c16266 Fix more clang-analyzer warnings (#12427) 2018-12-10 14:41:38 +01:00
David CARLIER
384fe0f903 Silencing/fixing clang warnings. (#12430) 2018-12-10 00:04:21 +01:00
dav1901
b88806f65f Fix more clang-analyzer warnings (#12424) 2018-12-06 16:55:09 +01:00
pancake
5df3872b9d Boolify r_cons_yesno() 2018-12-04 12:49:43 +01:00
David CARLIER
260a9e64cc Couple of leak fixes, div by zero avoidance. (#12338) 2018-11-27 15:46:56 +01:00
lzutao
becc3000a8 Change unneeded global static vars to local static (#12324) 2018-11-26 23:21:19 +01:00
BlaCoiso
0b582468ef Update output.c (#12314) 2018-11-25 01:47:11 +01:00
radare
d05292e485
Fix 80 warnings coming from gcc8.2 (#12280) 2018-11-22 22:11:43 +01:00
lzutao
5c9eb4f43b Fix #12053 - Flushing stdin is illegal 2018-11-15 19:06:57 +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
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
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
dav1901
8b83d03c99 Minor code cleanups free/R_FREE (#12145) 2018-11-13 23:41:28 +01:00
dav1901
9b0fbf1ee4 Minor code cleanups - free/R_FREE/etc 2018-11-13 00:23:49 +01:00
dav1901
e25a5b6222 Fix two minor memory overruns 2018-11-07 18:14:08 +01:00
gordon-quad
d2102956cd Add support for shift-arrows in st and rxvt-unicode ##console 2018-11-02 18:44:43 +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
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
Aaron
a6725edb1f Fix #10324 - Implement RLog API for leveled logging ##core (#11786) 2018-10-27 05:29:22 +02: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
c09ba158fe
sync sdb and adapt r2 codebase (#11953)
add improvements of SdbHt from sdb
2018-10-26 15:54:32 +02:00
pancake
2dac50b15f Temporally disable the hud cache until the scroll is fixed 2018-10-26 14:03:41 +02:00
pancake
11c02de20c Fix #11936 - Optimize RCons.hud with cache ##refactor 2018-10-26 00:58:47 +02:00
pancake
778ba010ce Fix build and start refactor of r_cons_hud() ##refactor 2018-10-26 00:24:56 +02:00
davidpolverari
6941e5bd66 Handle ^C in RCons.less ##visual 2018-10-23 11:55:09 +02:00
pancake
a33fc03725 Fix visual panels glitch and handle 's' in zoom mode ##visual
* And remove dead code
2018-10-20 02:12:30 +02:00
radare
6bc3d5562f
Fix #11851 - Cursor and echo glitches in Visual ##visual 2018-10-19 13:42:38 +02:00
pancake
15ab430fdd Fix crash in XNU when calling ttyname() on an invalid fd 2018-10-08 00:02:22 +02:00
Riccardo Schirone
e2278cc50f
sync sdb: some refactoring on how to access base SdbKv fields (#11741) 2018-10-05 15:21:46 +02: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
pancake
c2e447fc01 Fix last googlefuzz (direct memory leak in cb_pager)
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10576
2018-09-21 11:41:48 +02:00
radare
478dd2377a
Fix #11566 - Regression in r2 = introduced by threading and siol (#11598)
Still not perfect because stdin works, but the tty size/configuration
is not correct when reopening.
2018-09-21 00:13:19 +02:00
radare
20364845e3 Fix negative value on unsigned operation inside RCons (#11560) 2018-09-17 15:44:39 +02:00
radare
945e9566fb
Fix #11455 - Implement internal less pager with scr.pager=.. (#11548)
* Use full screen in r_cons_less (last line was not used before)
2018-09-17 12:15:12 +02:00
Florian Märkl
c05c85aa9f Reimplement TCP Server with libuv and add configure/meson flags (#11403) 2018-09-17 12:07:00 +02:00
radare
486c61529c
Implement the "underscore command" 2018-09-16 22:50:56 +02:00
Maijin
4d12a2036c Remove restrict keywords 2018-09-15 18:39:56 +02:00
Neven Sajko
8274d307de Fix signature of printf-like function (pointer) types (#11522)
The type signatures have to be compatible with printf.
2018-09-15 11:41:05 +02:00
Riccardo Schirone
bd5de316be Random fixes (#11503)
* core/panels: fix memleak
* cons: reintroduce change to correctly print multi-line help headers
2018-09-14 11:48:00 +02:00
Neven Sajko
07e1359daf libr/cons: Fix EOT handling (#11474) 2018-09-13 19:44:27 +02:00
Neven Sajko
4a722e80d8 Add braces to if, else, for, while ... (#11504) 2018-09-13 10:17:26 +02:00
Neven Sajko
2b7990fcee libr/cons: Fix SIGWINCH logic (#11470)
Fixes two bugs; puts pselect in a loop to enable resizing window more
than once before there is any input, and reset sigwinchFlag to zero when
resizing window.
2018-09-12 11:55:20 +02:00
pancake
f90b534a4d Fix several bugs introduced during r2con 2018-09-10 16:33:29 +02:00
Riccardo Schirone
07bff5eb11 cons/d/xvilka: make nops a bit more visible (#11432) 2018-09-07 21:29:15 +08:00
ylmrx
7a2a9900a2 several inline documentation enhancements (#11429)
* - avoid the ugly lack of space between the command and its description
in the usage lines.
- avoid the confusing sections (cf. 'i?')
- prettier general help (cf. '?') -> use r_core_cmd_help instead of
r_cons_printf (#7967)

with help and advices from jeisonwi

* - strlen() is better than sizeof()
- coding style correction.
2018-09-07 15:03:01 +02:00
xarkes
a7122b0062
Improved cutter theme (#11412) 2018-09-06 11:22:01 +02:00