dvertx
7dd134283a
Fix some bugs in the ls command parsing ##shell
2023-06-19 23:57:15 +02:00
pancake
6bbe2e22fa
Use R_LOG instead of eprintf (Usage in libr/util)
2023-03-14 20:42:02 +01:00
pancake
b8e6b52aac
Also replace __UNIX__ with R2__UNIX__
2022-12-10 20:32:10 +01:00
pancake
0b90768931
Rename RStr.home() to RFile.home() as part of the Plan ##api
2022-10-27 16:28:33 +02:00
pancake
b8aff944ec
Implement the ji: command as an alternative to ~{} without cons filtering ##shell
2022-10-27 10:44:29 +02:00
Paul B Mahol
10eb24198a
Fix several issues in r_syscmd_join() ##util
...
Fix crash if reallocation happens when using r_str_append().
Fix leaks in function.
2022-08-07 12:08:20 +02:00
pancake
26bc48806e
Fix last cov: minor memleak fix
2022-05-06 12:29:14 +02:00
pancake
f598b68e41
Better error handling in pushd/popd ##shell
2022-05-03 13:21:31 +02:00
pancake
86e7fd1a14
Fix #19830 - implement pushd/popd commands ##shell
2022-05-03 11:53:52 +02:00
pancake
bc5cea046e
Fix last covs
2022-05-03 09:11:28 +02:00
pancake
a9d672774a
Implement 'mktemp' syscmd command ##shell
...
* Initial implementation, needs testing, use with caution
2022-05-02 23:32:13 +02:00
pancake
664e8800d6
Remove all the deprecated abi apis
2022-04-19 15:40:29 +02:00
Sergi Àlvarez i Capilla
eb4a42d341
Fix the latest covs (memleaks, oobshift, syntax)
2022-03-04 11:19:47 +01:00
Lazula
55bfe93735
Fix problems in l command
2022-03-03 09:31:08 +01:00
Sergi Àlvarez i Capilla
fdc1ba6d6d
Rewrite r_list_uniq with a faster algorithm ##core
...
* Adds _inplace() variant to avoid creating a new list
* Speedups aafs, aflm, pd, aflt and aflj
2022-01-11 23:29:47 +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
pancake
e6f2cd0b2a
Remove trailing spaces ( #19460 )
...
$ git grep ' $' | grep -v ^test/ | cut -d : -f 1 | sort -u > /tmp/trailing
$ for a in `cat /tmp/trailing` ; do sed -i -e 's/ *$//' $a ; done
2021-12-02 17:39:59 +01:00
pancake
28b0543825
Honor console width in ls and fix lsj,lsq,lse ##shell
...
* Move console_width logic out from r_syscmd_ls ##api
* Fix tests
2021-10-09 03:26:47 +02:00
pancake
beab137cd7
Use PJ in lsj/ls -j/dir -j
2021-10-09 03:26:47 +02:00
pancake
775581cc97
Sort the output of ls
( #19034 )
2021-08-30 16:21:24 +02:00
pancake
913e23b2dd
Write proper help message for the ls and less commands ##shell ( #19033 )
...
* Also available via the recursive help
2021-08-30 14:16:08 +02:00
pancake
7c14bac05b
Add initial support for building r2 on WASI ##build
2021-06-20 17:14:43 +02:00
pancake
f47f58d8f4
Fix last covs ( #18674 )
2021-05-11 14:49:48 +02:00
pancake
898173aa38
Add RFile.new and RFile.move APIs ##util
2021-01-03 10:54:00 +01:00
Lazula
f2976d3c7e
Use r_str_get_fail() throughout codebase ##refactor ( #18079 )
2020-12-21 08:51:44 +01:00
pancake
d3157e2ed3
Fix 32 critical COVs (UAF, UB and OOB) ( #18077 )
2020-12-21 01:10:22 +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
Florian Märkl
0b5e78e923
Make size arg of r_file_slurp() size_t ( #16221 )
2020-03-15 23:34:38 +01:00
radare
5e629a3260
Avoidify the strTrim() APIs + cleanup/refactor ##util ( #16056 )
2020-03-02 21:39:37 +01:00
Anton Kochkov
9ae41ae69f
Revert "Avoidify the RUtil.strTrim() APIs, rename trimHeadTail() and add asserts in RConfig ##refactor" ( #16055 )
...
This reverts commit 38b61c7bcf
.
2020-02-26 09:59:04 +08:00
radare
38b61c7bcf
Avoidify the RUtil.strTrim() APIs, rename trimHeadTail() and add asserts in RConfig ##refactor
2020-02-25 17:53:09 +01:00
David CARLIER
e71cd20268
Memory leak fix proposal in syscmd_join ##util ( #16012 )
2020-02-20 21:02:43 +01:00
pancake
a228c9297b
Implement 'cols' RTable.query to filter by column names ##print
...
* r_str_split_list() rewritten to support nth limit
r2 -qq -c 'aac;aflt size/gt/200,addr/cols/name/nbbs,nbbs/sort/inc' /bin/ls
2019-08-28 23:25:31 +02:00
dodococo
5dd819e847
Implemented head and tail commands ##core
2019-07-25 18:51:30 +02:00
dodococo
3d4d72a458
Add path completion for join, uniq, sort ( #14373 )
2019-06-20 17:37:10 +02:00
dodococo
2da973ed24
Fix #14335 - Add sort, join and uniq ##core
2019-06-20 13:11:37 +02:00
Anton Kochkov
20e19d6023
More spelling fixes in the code
2019-06-20 13:36:02 +08:00
radare
a49bb7cf66
Change the signature of r_str_trim to avoid confusions ##refactor
2019-06-16 20:58:40 +02:00
pancake
628a3c5ddf
Fix Windows build
2018-09-13 17:22:29 +02:00
pancake
0d4e08aac4
Implement 'ls -e'
2018-09-13 16:45:31 +02:00
pancake
8159e7c322
Fix last covs
2018-07-13 14:51:34 +02:00
pancake
8bcd28c386
Implement ls -q and lsq commands to list files in quiet mode (one file per line)
2018-07-11 15:51:35 +02:00
pancake
fe7ae5d0af
Fix last 20 coverity issues
2018-03-19 11:51:04 +01:00
Giuseppe
d77ad33b69
Fix mkdir -p
for r2 shell ( #9532 )
...
Also make r_syscmd_mkdirp return a
string, instead of printing output on
stderr via `eprintf`. This will help
testing.
2018-02-28 01:24:46 +01:00
pancake
335938be58
r_str_chop -> r_str_trim
2018-01-08 03:22:26 +01:00
Giovanni
3851e7ea20
13 coverity bugs fixed. ( #8303 )
...
* 1372431 Unused value
* 1372425 Unused value
* 1372412 Dereference before null check
* 1372410/1372409 Resource leak
* 1372400 Dereference before null check
* 1372391/1372398 Resource leak
* 1372397 Dereference before null check
* 1372394 Resource leak
* 1372390 Dereference before null check
* 1372379 Dereference before null check
* 1372304 Resource leak
* 1372298: Out-of-bounds read & 1355090: Untrusted array index read
* 1372290 Dereference null return value
* 1372283 Missing break in switch
* fixed mistake.
2017-08-24 13:31:27 +02:00
davidpolverari
1fb422b532
Fix #6162 - Renames r_str_concat to r_str_append
2017-03-16 22:29:49 +01:00
pancake
a115c2991a
Fix oobread reported by revskills in ls
2017-01-20 18:45:17 +01:00
pancake
5fb9319613
A bit more work for r2bb
2017-01-13 12:49:42 +01:00
pancake
57e33f0d04
Fix some latest covs
2017-01-03 17:58:36 +01:00