3010 Commits

Author SHA1 Message Date
pancake
d894f967e8 Add r2pm -U to upgrade all the outdated packages 2021-06-15 12:09:27 +02:00
pancake
f49ba3a948
Reduce stackframe usage in exchange for the heap for portability (#18824) 2021-06-10 16:13:38 +02:00
pancake
b545c72017
Better handling of HAVE_SYSTEM, PTY, FORK, DYLINK and THREADS ##build 2021-06-10 13:52:29 +02:00
condret
53d8f3c591 Add r_list_iter_get_prev (siol eternal) ##util 2021-06-07 22:44:03 +02:00
Sergi Àlvarez i Capilla
91bab35509 Fix oob read bug in r_str_home on empty env vars 2021-06-07 20:17:21 +02:00
pancake
f6b35eec47
Use r_sys_getpid() for source portability whetever getpid() is called (#18809) 2021-06-07 17:32:37 +02:00
Sergi Àlvarez i Capilla
247b509edc Improve monotonic clock checks, fixing build on old linuxes 2021-06-05 11:35:31 +02:00
Jules Maselbas
c3d5286ec3
Add clean target in libr/util/d/Makefile ##build (#18802)
.sdb and .c files are generated and must be cleared.
Add missing target into .PHONY
2021-06-05 11:01:39 +02:00
condret
ddb8114999 Fix bug in r_list_insert that breaks r_list_sort ##util 2021-06-03 22:26:48 +02:00
condret
56c23ca3e0 Implement r_list_iter_to_top #18793 (siol eternal), do some minor cleanup and fix bug in r_list_prepend that breaks r_list_sort ##util 2021-06-03 21:43:23 +02:00
pancake
0aba7ad0e6
Fix empty lines in hexdump with multiple comments in one line ##print 2021-05-31 23:03:54 +02:00
condret
5b7af01189 Add r_rbtree_cont_node_{first/last} (siol_eternal) ##util 2021-05-30 19:07:05 +02:00
pancake
1b27c79e7b Support multiline comments in px ##print 2021-05-28 01:53:09 +02:00
pancake
46ec83c5a0
Add use_cgen meson option ##build (#18766) 2021-05-27 23:56:28 +02:00
pancake
6181e1e17f
Fix #18308 - Fix pf parsing issues and support write on enums and bitfields ##print (#18765) 2021-05-27 20:59:55 +02:00
pancake
d80476b698
Update SDB: Use the thin cgen instead of gperf (#18752) 2021-05-25 16:14:35 +02:00
pancake
c778d8cf4b Fix more asan issues in charset api and recently introduced memleaks 2021-05-25 11:27:32 +02:00
pancake
71a83e865b
Fix autocompletion for 'e ' and handle cfg.charset=<tab> ##shell (#18748) 2021-05-24 21:41:35 +02:00
pancake
cb8fe1f388
Fix #18724 - Use RCharset in rabin2 -z ##bin (#18743)
* Dont show the offset as its misleading
2021-05-24 18:53:36 +02:00
pancake
ca284951f7 Fix shift overflow issue in format.c 2021-05-20 12:03:42 +02:00
pancake
0e3380797f Fix warnings in regerror.c 2021-05-20 00:22:50 +02:00
pancake
c3953d64d6
Use gperf on anal/d and improve build and checks ##anal
* Add --without-gperf configure flag
* Update sdb to support gperf.foreach and faster ls.sort()
* Support cc and types sdb gperfs
* add r_str_newvf
* Honor HAVE_GPERF in more places
* Add CI job to build and test cmds with gperf
2021-05-20 00:22:20 +02:00
pancake
1bf73baae7
Optimize r_list_sort() (#18713) 2021-05-19 23:48:40 +02:00
meme
9cbd267a00
Remove assertion in pFA ##print (#18707) 2021-05-19 16:15:55 +02:00
pancake
ee08bc7600 Implement aeis to initialize argc, argv and envp for emulation ##emu
* Only for 64bit systems for now, it's easy to switch to 32bit
2021-05-13 00:37:42 +02:00
pancake
f47f58d8f4
Fix last covs (#18674) 2021-05-11 14:49:48 +02:00
pancake
08a8ab6eee
Use gperf in util/charset (#18672)
Co-authored-by: pancake <pancake@nopcode.org>
2021-05-11 11:21:02 +02:00
pancake
57a9926b1f
Remove globals in cons/grep and random cleanup (#18671) 2021-05-10 11:56:08 +02:00
pancake
b8f1edfa37 Fix null deref in arm64 esil 2021-05-09 01:09:39 +02:00
Dennis Goodlett
74b8b3cc99
Small optimzation to r_strbuf_vappendf (#18665) 2021-05-07 00:18:12 +02:00
pancake
a00b5d4a4d
Honor cfg.charset in px and support escaped encoding ##print (#18653) 2021-05-04 01:59:20 +02:00
pancake
53aaefb283 Implement IBM EBCDIC 0037 character encoding ##charset 2021-04-30 11:32:29 +02:00
pancake
d9e7ae80ad Fix crash in V. when no maps loaded 2021-04-30 00:35:51 +02:00
gogo2464
025bd47d35
add ? and ! as custom charset for gameboy rom pokemon red and blue (#18644) 2021-04-29 20:44:39 +02:00
gogo2464
c093e68c48
Support null bytes in r_print_raw ##print 2021-04-27 13:27:29 +02:00
murphy
ce176addd1 Fix 1452311 Resource leak 2021-04-26 20:49:55 +02:00
pancake
d396b4052e Fix memory leak in r_diff_levenshtein_nopath 2021-04-25 13:57:03 +02:00
pancake
04cf5922b9 Fix asan-fuzz tests (fixes recent uaf and ub around) 2021-04-25 01:35:53 +02:00
Anthoine Bourgeois
b6fd9e2d11 backtick is a known escape subcommand character.
New test in:
db/cmd/feat_quote Quotes and substitution - newshell

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
Anthoine Bourgeois
63f874c310 simple and double quotes also unescape.
Partially fix:
db/cmd/feat_quote Single quotes - newshell

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
Anthoine Bourgeois
4cf97fadc2 Trim arguments to be closer to echo
Test fixed:
db/cmd/cmds hash comment and simple quote

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
Anthoine Bourgeois
6e838b6ba4 cmd: double quotes escape the semi-colon command separator
Simple quotes already has.

Test fixed:
db/tools/rax2 C array {0x33,33,23,32}

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
pancake
46fbda4183
Fix a couple of oobreads (#18610) 2021-04-21 14:46:31 +02:00
pancake
b24cd8c692 Fix off-by-one read issue in r_file_abspath_rel 2021-04-21 13:04:55 +02:00
pancake
1721ebf558
Fix #18604 - UB in left shift parsing uleb128 (#18605) 2021-04-21 11:29:33 +02:00
Dennis Goodlett
6d0e10815f
Remove duplicate code in levenshte path ##diff (#18592) 2021-04-19 09:38:58 +02:00
pancake
4905e3af91
Fix #18260 - Sort bbs before comparing them for diffing code ##diff (#18584)
Co-authored-by: pancake <pancake@nopcode.org>
2021-04-16 17:57:13 +02:00
murphy
5febb2dbc6 Fix error in file.c 2021-04-13 20:09:33 +02:00
murphy
2d21622433 Resolving conflict in file.c 2021-04-13 20:09:33 +02:00
RHL120
4c2a518b75
Tried to fix certain problems in r_file_dir_recursive and added it to a cmd.c (#18552)
* Fixed some of the glaring issues found in r_file_dir_recursive()
* Added a command to access r_file_dir_recursive()
* Made dir constant to hopefuly fix tests
* Split r_file_dir_recursive into 2 functions to make it return RList *
* Adjusted the lsrf function to work with the new split
* Moved the lr command logic to the cmd_lsrf function
* Applied requested changes
* Fixed the CI issues
* Changed !arg to !input
* Changed !input to R_STR_ISEMPTY (input)
2021-04-11 17:00:11 +02:00