Commit Graph

284 Commits

Author SHA1 Message Date
pancake
a06ade1796
Balance spacings in braces ##indent 2022-10-13 21:21:34 +02:00
pancake
ca2674228f Add missing zip dependency to r_fs needed for static build 2022-09-15 11:54:24 +02:00
pancake
a6e0d6c480 Merge rhash into rcrypto and improve apis ##api
* Update meson and make build systems
* Remove leftovers and unused dependencies
2022-09-15 11:25:40 +02:00
pancake
18220d39df Change build order as long as now bin depends on fs ##build
* Add bin.zip for meson builds
* bin.fs now uses the fs apis
2022-09-15 00:23:21 +02:00
pancake
241a905bbe Dissolve libr/fs/types.h into fs.c and r_fs.h 2022-09-14 23:44:55 +02:00
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
5ffc549708
Fix last covs 2022-08-23 17:43:34 +02:00
pancake
b6e7292019 Enable linting for trailing tabs ##lint 2022-08-22 23:25:40 +02:00
pancake
87239d64f6 omt->om, and make omr print map size with no args ##shell
* Fill null deref if fs plugin doesnt provide the dir callback
2022-08-22 01:50:32 +02:00
pancake
02c17a9b59 Implement mdd, mdq and ms's ls -l ##fs 2022-08-22 01:50:32 +02:00
pancake
521e296fd7 Fix UAF in md<tab> by owning the graph by core in the heap, not in stack 2022-08-22 01:50:32 +02:00
pancake
82646917c7 Use RLOG in fs, fix null fs.mount and unused drx_at warning 2022-08-22 01:50:32 +02:00
pancake
53f646f098 Add initial fs.zip plugin, listing only for now ##fs 2022-08-22 01:50:32 +02:00
pancake
e4e4ecc605 Add lint for ';;$' and remove strncmp from io plugins 2022-08-18 00:11:36 +02:00
pancake
091b7c96c2
Fix last covs and support mount in ms ##fs 2022-07-08 09:51:21 +02:00
pancake
f78330e37e
Merge asm.mips(cs,gnu) into anal.mips ##refactor 2022-07-07 18:43:00 +02:00
pancake
3a509e819d
Refactor the RFS.Shell and add the getall command ##fs 2022-07-07 17:56:39 +02:00
pancake
a297b27773 Add fs.cwd to define default path in ms ##fs
* Remove unnecessary global variable
2022-07-07 11:10:53 +02:00
pancake
d7f19855ff Fix mountpoint listing in the rfs shell ##fs 2022-07-05 17:18:18 +02:00
pancake
2bca764ad3 Cleanup stuff
* Use more R_TH_LOCAL
* Use more const char * const
* Add archinfo for cr16
* Use more R_LOG
* Remove dup code in RCons.pixel
2022-06-26 12:41:22 +02:00
gitcolt
e8a8a3532e
Fix #16395 - Add open file command to the ms shell ##shell 2022-06-23 02:33:30 +02:00
pancake
c8ae21f68f
Only build library archives when -Dblob is provided ##build
* Lowers the amount of objects from 2400 to 1500
2022-03-22 11:59:13 +01:00
pancake
4ba0af5d1d Fix meson -Dblob=true builds for static ##windows 2022-03-16 00:48:50 +01:00
Lazula
55bfe93735 Fix problems in l command 2022-03-03 09:31:08 +01:00
Sergi Àlvarez i Capilla
aef278ee9c Make -Dblob=true statically link all r2 libraries ##build 2022-03-02 11:30:28 +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
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
Sergi Àlvarez i Capilla
0e5a79ecb2 Use base64: on all the fs.io calls 2021-10-26 12:45:02 +02:00
Sergi Àlvarez i Capilla
8bef293742 Add b64 handling for md 2021-10-26 11:40:34 +02:00
pancake
7a2c46dfa6
Always use b64 encoded filepaths on the fs.io calls ##fs 2021-10-26 11:27:59 +02:00
pancake
e80bc53cd6 Fix UB bug found randomly in the CI related to the mw command
* That was not spotted by valgrind or asan 🤦
2021-09-15 10:09:08 +02:00
pancake
819a13f816 Fix assert warning in r_fs_umount 2021-09-09 20:54:57 +02:00
pancake
d98abc6303 Random cleanup in fs code 2021-09-02 18:26:37 +02:00
pancake
ed495116e0 Use r_return in the r_fs api 2021-09-02 18:26:37 +02:00
pancake
23ad9b50ee
Fix #12335 - ignore system-installed r2 includes ##build 2021-05-28 00:45:48 +02:00
murphy
ec15814134 Fix 1446672 Resource leak 2021-04-13 20:09:33 +02:00
pancake
26d12a4404
Fix meson build issues related to grub (#18554) ##build 2021-04-09 19:54:55 +02:00
murphy
013d9123a3 Fix warnings and minor fixes due to code review 2021-03-17 11:16:51 +01:00
murphy
d7f9449aaf Fix 1447034 Resource leak 2021-03-17 11:16:51 +01:00
pancake
70839e7ef3
Add plugins=nogrub option for meson ##build 2021-03-11 12:39:47 +01:00
Murphy
6f091cfe73
Fix absolute paths and add r_return guards ##fs 2021-02-24 11:24:42 +01:00
Dennis Goodlett
4c8f20309d
Fix segfault in ms with blank line (#18369) 2021-02-16 21:01:36 +01:00
pancake
7d076a5b5a Fix fs.posix.cat and use r_sys_dir instead of reimplement (-48LOC) ##fs 2021-02-14 09:19:04 +01:00
Murphy
8245e459f4
Add support to stream files using mg (#18253) ##fs
* Fix return values to int
* Add support to mg to read files in chunks
* Add support fs_io plugin when read files in chunks
* Change return value to in in read and write of r_fs_plugin_t
* Refactor code of mg command to support streaming
* Truncate destination file if exists
* Removing warnings due to incompatible pointer
* Add offset and size optional parameters to mg cmd
* Fix mg arguments management
* Fix some return values in fs
* Fix and refactor code to read files by chunks using mg
* add format changes
* Using r_num_math to parse the args
* Fixing fs_r2 to remove some warnings
* Remove some debug messages
* Update libr/core/cmd_mount.c
2021-01-23 17:16:39 +01:00
Liumeo
c631443b9b
Remove strncat usage (#18229) ##refactor 2021-01-14 17:24:23 +01:00
pancake
d3157e2ed3
Fix 32 critical COVs (UAF, UB and OOB) (#18077) 2020-12-21 01:10:22 +01:00
eagleoflqj
facdda17e3 cp-demangle - fix tcc build ##build 2020-11-27 12:36:59 +08:00
pancake
aa7de006e6 Fix TinyCC build ##build 2020-09-27 13:33:26 +08:00
Kārlis Seņko
7042ae727b Refactor r_str_split_lines to use size_t. 2020-09-21 07:48:17 +03:00