Commit Graph

405 Commits

Author SHA1 Message Date
pancake
007809f8dd Boolify and rename some methods and fields from RFS ##api
* fs plugins now can hold an .author field
* API breaks for simplicity
2022-09-14 23:41:12 +02:00
pancake
6db7d19e72 Add linting to spot misuses of r_strbuf_appendf and fix them all ##refactor 2022-09-09 23:12:01 +02:00
pancake
d020b38d32 Use more Config.setBoolean() and lint some cases 2022-09-06 22:23:08 +02:00
pancake
e57b387f36 Fix last covs 2022-09-06 01:52:17 +02:00
pancake
59bfb51cec Use RCore.help instead of eprintf in more commands under aa ##shell 2022-08-19 13:16:59 +02:00
pancake
785a469a6d else block linting 2022-08-18 18:35:22 +02:00
pancake
7a35f03471 More source spacing linting 2022-08-18 14:37:29 +02:00
pancake
a538b2b700 Add =0 and =1 lintings 2022-08-18 13:58:40 +02:00
pancake
52a22ab995 Add lint for \tfree( 2022-08-18 10:27:06 +02:00
pancake
41cf0bcf39 Add the 'i<' lint 2022-08-18 10:27:00 +02:00
pancake
660478b3cc sys/lint for '0 ;' 2022-08-18 10:26:56 +02:00
Paul B Mahol
090bba7945 Fix several bugs when interacting in VE mode ##cons
No need to handle non-truecolor mode separately,
there is conversion internally to lesser formats.
Also conversion was wrong, using lower bits instead
of higher bits.

Disallow setting colors to fully black foreground and
background, this is so user does not shot itself in foot
by having to restart r2 because some items become invisible.

Limit opt to sensible values, prevent bad user experience.
2022-08-08 19:23:09 +02:00
Paul B Mahol
1bcc3670a7 Fix leaks in VE mode ##cons 2022-08-08 19:23:09 +02:00
Richard Patel
b78855c38d Refactor a few eprintf 'Cannot …' to R_LOG_ERROR 2022-08-01 16:46:46 +02:00
Paul B Mahol
8ffa196193
Fix not calling r_asm_op_fini() when needed (#20506)
The RAsmOp is used on stack when disassembling and after its content is not need it needs to call its _fini to free possible heap memory previously allocated.
2022-07-29 07:30:05 -04:00
Paul B Mahol
01cab5876a
Allow seek to previous result item when it is at 0 offset ##visual 2022-07-19 09:32:59 +02:00
pancake
ad1add71cb
Fix a new linting to remove the double error message in RLOG calls ##lint 2022-07-07 20:25:26 +02:00
pancake
3db3750eb0
Lint for x"" ##cleanup 2022-06-28 12:07:58 +02:00
Richard Patel
363df75c06
Replace some instances of eprintf with R_LOG_ 2022-06-28 02:49:42 +02:00
pancake
cc6c5747fd
Mark more globals as TLS (#20289) 2022-06-14 12:55:40 +02:00
pancake
5e48458dae
Initial implementation of pfb, binary formatting ##print
* pfb 3b2b10b foo bar cow
* Integrate with bit editor via '='
* Handle '=' in visual esil debugger
* Add tests and ascii-art output
* Handle bitvalue boundaries up to 64bits
2022-05-22 22:53:41 +02:00
pancake
5b7c970f2b eprintf requires newline
* git grep eprintf | grep -v '\\n'| grep '('
2022-05-05 13:11:52 +02:00
pancake
f35fd1c33e
Initial implementation of shared RAsmConfig ##asm (#19972) 2022-04-22 19:47:25 +02:00
pancake
f089f6f985 Visual color theme editor available from panels ##visual
* Fix visual glitches in VE[hl]
* Handle empty 'VEc' properly
* Handle ':' command prompt in the visual theme editor
2022-04-09 12:10:32 +02:00
pancake
f8a35da205
Dont use != NULL as its implicit in C, even for bool casts ##refactor
$ find binr libr -name "*.c" -exec sed -i -e 's/ != NULL//g' {} \;
2022-03-15 19:54:04 +01:00
pancake
7370759fa0
Fix some bugs spotted by CodeQL 2022-03-15 15:22:25 +01:00
Lazula
d507bda91c Remove R_EMPTY and R_EMPTY2 2022-03-13 11:26:10 +01:00
pkubaj
6e4819b054
Add support for powerpc, powerpc64, powerpc64le and riscv64 on FreeBSD ##debug
* Also correct issue in vmenus.c, where ch is checked later whether it's -1, but on ARM and POWER, char is unsigned.
2022-02-18 19:25:53 +01:00
pancake
f2995c2949
Introduce r_strf and stop using sdb_fmt ##util 2022-01-18 18:35:31 +01:00
Lazula
ad749a0b1a Fix static/R_API function definition formatting
* Remove spaces before parens
* Remove spaces after asterisks
2021-12-21 20:58:12 +01:00
aviciano
5a0bc927e7
Fix #16178 - Rename the r_anal_fcn* apis to r_anal_function* 2021-11-21 20:18:46 +01:00
condret
932682ea8a Liberate RSpaces from old rbtree api 2021-11-20 01:02:53 +01:00
Lazula
2255bf8b5d Many indentation style fixes
* Change several 8-space indents to tabs
* Apply tab indent style when breaking long lines
* Move operators from EOL to start of next line
* Fix ternary formatting
2021-11-18 10:43:52 +01:00
pancake
215c1d3af0
Fix defining meta backwards in disasm ##visual (#19273) 2021-10-21 12:29:14 +02:00
pancake
cf5cd6df56
Fix latest covs (#19259) 2021-10-19 10:49:11 +02:00
condret
66510e8daa
Fix #18384 - Visual arg/var management not working sometimes ##visual 2021-10-14 17:48:03 +02:00
condret
36dd361694 Fix Vvv output for stackpointer based vars ##visual 2021-10-14 03:25:52 +02:00
pancake
84e323334c Fix recent android build regression 2021-08-19 18:26:22 +02:00
pancake
3158c9ff83
Fix #18292 - Clarify the use of Vdn/Vdr and rename VdR to VdX ##visual 2021-07-25 23:15:33 +02:00
pancake
5f4c27f7f8
Initial implementation of ~.... for hudline prompt ##visual (#18861)
* Add new RCons.hud.line(_string) APIs
2021-06-28 00:13:15 +02:00
pancake
83f590bee3
Fix the last issues spotted by coverity (#18787) 2021-05-31 22:04:51 +02:00
pancake
bdb7f0693f
Add 'aev' as an alias for VbE and improve esil debugger ##esil (#18764)
* n/p keys seek one instruction forward/backward
* o key to enter new offset
* e key to enter new esil expression
* infinite loop fixed on invalid expressions
* : enter commands working again
2021-05-27 20:36:53 +02:00
ChD1
580bdf2c52
Fix some bugs in dex.c, marshal.c, panels.c and other code optimization and fixel (#18297) 2021-01-27 10:53:50 +01:00
Qijia Liu
b8afdf8d7d Fix memleak in db/formats/mangling/mangling 2021-01-25 02:37:21 +01:00
Liumeo
c631443b9b
Remove strncat usage (#18229) ##refactor 2021-01-14 17:24:23 +01:00
pancake
f777478831 Fix #17940 - Show ConfigNode options when selected in Ve ##visual 2021-01-10 19:24:52 +01:00
ratijas
28149b2a95
Fix wording, whitespaces and other minor stuff ##doc (#18081) 2020-12-23 22:22:30 +01:00
Lazula
f2976d3c7e
Use r_str_get_fail() throughout codebase ##refactor (#18079) 2020-12-21 08:51:44 +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 46187fe4e1, '!' 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
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