24 Commits

Author SHA1 Message Date
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 38b61c7bcfe55a727b9c3cedbc0f3147018e7c6b.
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
pancake
c2abb6ab2f Initial refactoring of the r_syscmd APIs and begin with binr/r2bb 2017-01-03 03:48:55 +01:00