816 Commits

Author SHA1 Message Date
pancake
1184610971
Fix the CI badge and fully rewrite all the workflows to make sense ##build
* Windows, Linux, Static, macOS, Android, iOS builds published for every commit
* Kept coverage, coverity, fuzzing tests, lgtm and -Werror jobs
* Kill the continuos, the over-engineered matrix and other empty or unnecessary tasks (250 vs 900LOC)
* Jobs TODO: fatmac, termux and rpm (centos) packages
2021-01-12 13:41:21 +01:00
Liumeo
a74ca8f07b
Remove core.file ##refactor (#18178) 2021-01-06 23:44:18 +01:00
ratijas
28149b2a95
Fix wording, whitespaces and other minor stuff ##doc (#18081) 2020-12-23 22:22:30 +01:00
ratijas
6d811285c2
Fix wording and whitespacing ##doc (#18065)
* Fix wording, whitespacing and other minor stuff
* cmd.c: ellaborated yy syntax, improved descriptions
  - replace "srcoff" with "origin"
* cmd.c(cmd_autocomplete):
  - refactor help into function: render autocomplete types with generic
    help subsystem;
  - "Types" heading now follow the "Usage" style by not being prefixed
    by a pipe character;
* cmd_anal.c: fix whitespaces & help text
* cmd_info.c: fix help text capitalization.
* cmd_print.c:
  - fix `pf` cmd help;
  - TODO: what pz? is doing here?
* cons.c:
  - refactor & better document r_cons_cmd_help();
  - fix whitespaces;
* visual & panels modes:
  - as of commit 46187fe4e14dc465dc6ac03fcc56a362f0b8e335, '!' no longer
    launches the r2048 game. The game itself it broken anyway, even when
    running from the Help menu in panels mode;
  - transitioning from panels to visual is not 'entering' but actually
    swapping/replacing visual panels with just panels, thus...
  - reword 'enter into the' to 'swap into' or even just 'enter', e.g.:
    "enter into the visual panels mode" -> "enter visual panels mode".
  - remove the "(dwm style)" words from a fortune tip, because I have no
    idea what it is, and it does not appear to be a valid command in any
    of the r2 modes.
  - update global help text.
* [WIP 2] Fix wording, whitespacing and other minor stuff
* visual.c:
  - r_core_visual_append_help(): first steps merging with
    r_cons_cmd_help from cons.c; use consistent colors for headers.
* [WIP 3] Fix wording, whitespacing and other minor stuff
* panels.c(__update_help):
  - shorten code and titles;
  - add comment to clarify that it is not a copy-paste error;
* [WIP 4] Fix wording, whitespacing and other minor stuff
panels.c, visual.c: tweak help text;
* [WIP 5] Fix wording, whitespacing and other minor stuff
* cmd_help.c: update global help text about visual mode -- it was
  outdated and overloaded.
* vmenus.c:
  - rename stuff, shuffle around static consts to reflect an actual
    ordering when viewing as a help text;
  - slightly improve help text rendering;
  - fix whitespaces;
* [WIP 6] Fix wording, whitespacing and other minor stuff
* lots of help text changed.  still working on proper commit message.
2020-12-21 01:12:08 +01:00
pancake
d3157e2ed3
Fix 32 critical COVs (UAF, UB and OOB) (#18077) 2020-12-21 01:10:22 +01:00
pancake
1367044559
Initial implementation of scr.cursor for keyboard accessibility in visual and panels ##visual (#18051) 2020-12-20 15:15:47 +01:00
Lazula
243bc871c3 Multiple refactors in io and util ##io ##util ##refactor
* Add r_io_map macros throughout code base
* Update string NULL-checking with renamed functions r_str_get() and r_str_getf()
* Change string NULL-checks throughout code base to use functions
* Add r_str_get_fail() to specify a custom string to return if NULL-check fails
* Mark JSON to be updated with PJ with "TODO PJ"
* Incidental style updates such as missing spaces
2020-12-13 05:09:13 +01:00
pancake
8a7229c28e
Honor coding style in panels.c and loss 370LOC (#17975) 2020-12-07 18:08:26 +01:00
Anton Kochkov
87b10ed586 Fix formatting warnings 2020-11-02 18:58:37 +08:00
Anton Kochkov
afba51ce98 Fix format warnings in libr/core 2020-10-22 13:37:25 +08:00
pancake
d441baad62
Fix latest COVs, remove dead code and unnecessary global variables (#17231)
Co-authored-by: pancake <pancake@nopcode.org>
2020-07-22 19:37:31 +08:00
pancake
2ce15e66b3
Display file associated to the current in the visual title ##visual (#17189)
Co-authored-by: pancake <pancake@nopcode.org>
2020-07-02 11:55:31 +08:00
pancake
ed3de3dabd
Add missing help message for V& (#17144)
Co-authored-by: pancake <pancake@nopcode.org>
2020-06-25 08:55:48 +08:00
pancake
160fc95e66
Use (void) instead of () in function signatures (#17026) ##refactoring
* Use (void) instead of () in function signatures
* Add test to avoid further contributions to commit the same mistake
2020-06-14 16:08:32 +02:00
Khairul Azhar Kasmiran
d236343411
Fix runaway scrolling in Visual mode after mashing down movement key on Windows Terminal (#17006) ##visual
* Fix runaway scrolling in Visual mode after mashing down movement key on Windows Terminal
* Reindent
* Use is_mintty() instead
* Use flush_stdin() instead
* Add a comment
2020-06-05 19:54:11 +08:00
pancake
f8a9011924
Rename core.assembler to core.rasm (#16814) 2020-05-13 01:28:23 +02:00
Florian Märkl
edf1be10d1
Refactor Meta out of SDB (#16716) 2020-05-09 20:49:28 +02:00
Sylvain Pelissier
d2b1d1359e
Add F9 continue key to ESIL (#16756) ##visual 2020-05-03 10:52:47 +02:00
Zi Fan
3b2db8305b
Fix segfault when passing null string (#16628) 2020-04-19 19:06:47 +02:00
Liumeo
3c2cd8cbd8
Suppress 2 LGTM alerts (#16631) 2020-04-19 19:05:35 +02:00
Liumeo
a571894042
Refactor printformat (#16627) 2020-04-18 11:08:46 +02:00
Riccardo Schirone
c8f99840ab
r_core_seek accepts a boolean as 3rd argument (#16618)
Replaces all 0/1 passed as 3rd argument to r_core_seek with false/true.
2020-04-17 12:53:35 +02:00
Alexis Ehret
ef07476e38
Fix various lgtm warning (#16497)
* Wrong type of arguments to formatting function root/shlr/mpc/mpc.c
* Overflow in uncontrolled allocation size ./libr/socket/run.c
* Multiplication result converted to larger type ./libr/core/cmd_print.c
* Multiplication result converted to larger type ./libr/bin/p/bin_dyldcache.c
* Multiplication result converted to larger type ./libr/core/linux_heap_glibc.c
* Multiplication result converted to larger type ./libr/core/visual.c
* Comparison of narrow type with wide type in loop condition ./libr/core/p/core_java.c
* Fix various warning -Wall ./libr/core/p/core_java.c
* Multiplication result converted to larger type ./libr/bin/format/mach0/mach0.c
* Multiplication result converted to larger type ./libr/util/print.c
* Multiplication result converted to larger type ./libr/asm/asm.c
* Fix small warning python
* Fix type error and declaration inside loop
* Reset mpc
* replace size_t
* Fix space missing, type and format
2020-04-12 20:45:24 +02: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
HoundThe
c6e8fb1e30
Add anal classes to "Vb" (#16383) ##visual
* base draft for Vb for anal classes
* Added color and boundary check
* Added placeholder print of selection from class.c
2020-04-04 10:58:08 +02:00
Alexis Ehret
1020cfb3cf
Remove the FCN_OLD sdb transition ifdefs 2020-03-30 15:14:12 +02:00
Rikard Falkeborn
58adb00765 Remove redundant condition
There is already an identical condition, with an identical body.
2020-03-22 12:49:47 +01:00
radare
66ed0133e2
Initial r_anal_fcn_* purge (#16238) ##refactor 2020-03-17 12:58:39 +01:00
Florian Märkl
0b5e78e923
Make size arg of r_file_slurp() size_t (#16221) 2020-03-15 23:34:38 +01:00
pancake
b1352ecd08 Add VdN (afs!) to edit function signature with cfg.editor ##visual 2020-03-10 10:30:32 +01:00
radare
72093ac706
Fix #16138 - Do not preincrement when it's not necessary (#16151) 2020-03-05 19:06:59 +01:00
radare
e37a2e1b9c
Fix UAF in om= (#16149) 2020-03-05 18:07:03 +01:00
Paul I
0e62dda341
Fix fgets() usage (#16068) 2020-02-29 20:47:10 +01:00
radare
7c115b1eda
Fix last covs (#15976) 2020-02-14 17:30:34 +01:00
pancake
51020062bc Fix #15963 - Handle / in Vx (visual xrefs) ##visual 2020-02-13 20:38:52 +01:00
Hye Sung Jung
757c23d5db Fix spelling errors (#15904) 2020-01-27 07:43:47 +01:00
Anton Kochkov
d0a915458a Coverity fixes 2020-01-19 20:37:29 +08: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
GustavoLCR
07b5e062f2 Fix #15545 - Fix NULL derefs after r_file_slurp() fails 2019-12-15 23:38:38 +01:00
GustavoLCR
e43c9e7caf Fix some warnings (#15549) 2019-12-08 12:49:58 +01:00
Florian Märkl
f019584f97 Add Comments to RCore and kill some unused Members (#15513) 2019-11-27 16:06:18 +01:00
Florian Märkl
70986cc3ce Partially decouple Tasks from RCore 2019-11-26 12:35:30 +01:00
pancake
10f7e7d50a Reduce the blocksize on some hexvisual modes ##visual
Faster interactions -- can be improved still
2019-11-07 10:46:23 +01:00
pancake
baed5ebec2 Fix #14857 - Handle 'O' key to rotate asm.pseudo/asm.esil ##panels 2019-10-23 14:09:52 +02:00
pancake
f6265e131f Run .dr* in visual prompt in cfg.debug is set ##visual 2019-10-12 23:56:16 +02:00
dok
f047f409af visual: Refactor print format (#15230) 2019-10-08 17:44:38 +02:00
dodococo
9d7a72f9c6 Integrate table API for p-h (#15083) ##table
* Added UTF8 and Curvy Support For Table API
* Added show footer with sum support
* Integrate star= command with table API
2019-09-24 10:46:06 +02:00
karliss
5379c70e89 Fix memory leaks and other problems found by ASAN. (#14980) 2019-09-08 01:24:14 +08:00
pancake
4046764f9d Fix #14889 - Implement ! and c keys in visual help 2019-09-01 20:26:25 +02:00
Vane11ope
4e51e811be O in visual is supported in panels with the "i" key ##panels (#14942) 2019-09-01 16:27:11 +02:00