108 Commits

Author SHA1 Message Date
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
murphy
ec15814134 Fix 1446672 Resource leak 2021-04-13 20:09:33 +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
Murphy
6f091cfe73
Fix absolute paths and add r_return guards ##fs 2021-02-24 11:24:42 +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
Kārlis Seņko
7042ae727b Refactor r_str_split_lines to use size_t. 2020-09-21 07:48:17 +03:00
radare
1ac6209c88
Fix #14424 - Handle ~ operator in the ms shell ##cons (#15846) 2020-01-19 07:40:21 +01:00
pancake
db3ab7e3f9 Fix cannot mount fs harmless warning message ##mount 2019-08-04 09:29:36 -07:00
pancake
9f4f802cec Fix build --without-gpl 2019-07-10 19:45:34 +02:00
Francesco Tamagni
d4a48a50d8 Improve R_FS via IO ##fs
- add `r_fs_file_copy_abs_path` to get the absolute path of a RFSFile, centralizing edge case handling
- use that in `fs_io_read`
- add missing `free (file->path)` in RFSFile destructor
- fix `handlePipes` for fs shell `cat` use case
2019-06-28 02:36:25 +02:00
radare
571a080ca7
s/CORELIB/R2_PLUGIN_INCORE/g (#14295) 2019-06-13 19:12:51 +02:00
pancake
90fd81ca81 Fix warnings here and there 2019-05-14 10:44:19 +02:00
pancake
d8b283f8c6 Improve the RFS API to support write and unlink operations ##fs
* In fs_r2: /seek and /bsize and fix flags and config writes
* fs.shell supports echo and redirections '>'
2019-05-10 11:25:35 +02:00
Anton Kochkov
bb67b54f74
Remove CYGWIN & MINGW remnants (#13377) 2019-03-15 12:55:08 +08:00
Paul I
b2c7f7ef6c Some fixes (#12670) 2019-01-07 00:29:23 +01:00
Paul I
bf29250ddd Fix #11487 (#11534) 2018-09-15 22:52:12 +02:00
Neven Sajko
4a722e80d8 Add braces to if, else, for, while ... (#11504) 2018-09-13 10:17:26 +02:00
whitequark
c816dc7e66 Don't try to build shared libraries if configured as --without-pic.
Specifically, avoid building all plugins as non-static objects,
as well as some supplementary libraries. In fact, a large amount
of plugins was already gated to build as shared objects only with
WITHPIC=1, but this was not done consistently.
This gating has been moved to */p/Makefile.

Building these shared objects is a waste of time and breaks
the --without-pic build unless CFLAGS is forced in the make
invocation.
2018-01-11 23:09:22 +01:00
pancake
3af92b04c3 Remove squash references (it's in extras) and add RFSPlugin.license 2017-11-08 00:49:29 +01:00
pancake
69e1e99ff0 Do not use zero length arrays in iso9660 2017-11-07 14:40:19 +01:00
pancake
ffeba10d1b Enhance the fs.r2 with /version and proper cat/read ops 2017-11-07 02:04:03 +01:00
Francesco Tamagni
c971176e41 Tweak fs.io
- fs_io_open: expects the io plugin to return the file size as an usigned int string
- fs_io_read: use name instead of path (because fs_io_open sets the name as absolute path) and require the io plugin to provide file contents as hex encoded string
- fs_io_dir: honor the type provided by the io plugin as a single char followed by a space in each line of the output
2017-10-31 00:22:33 +01:00
pancake
2eb8af0b71 Fix recent memleaks found by cov 2017-10-25 16:20:26 +02:00
pancake
d9b548e5b5 Fix last covs 2017-10-24 16:51:34 +02:00
pancake
bb17e9acda Fix mg infinite recursivity issue, add fq and fsq commands and handle /flags in fs.r2 2017-10-23 12:54:03 +02:00
pancake
3f64b7a1dc Initial implementation of the r2 filesystem 2017-10-23 03:48:48 +02:00
pancake
5132c88f4d More code cleanup and tweaks for char* r_io_system 2017-10-23 00:45:01 +02:00
pancake
ca1b44e64d Add dummy fs.io plugin, r_io_system now returns char* 2017-10-22 23:52:07 +02:00
SkUaTeR
28f785daa0 MSVC compile correctly (WIP) 2017-05-13 00:42:00 +02:00
pancake
fa671b9a16 Initial support for the Meson build system
- Integrated with current ACR
- Fix some stale fails got removed
2017-05-02 05:05:36 +02:00
pancake
26f7c77a42 Fix latest covs 2017-04-17 12:43:56 +02:00
Marcel
a4fc91f29b Remove dirent.h dependency for Windows and add utf16<->utf8 conversion function 2017-04-15 13:07:33 +02:00
Álvaro Felipe Melchor
f5166f936d Fix some meamleaks (#6156) 2016-11-09 02:28:14 +01:00
Sven Steinbauer
2996538700 Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +02:00
Sven Steinbauer
547f8bbc5c Infer fixes Round 2 (#4993) 2016-05-24 22:22:15 +02:00
pancake
7a19745932 Add missing squash.mk 2016-03-30 16:47:23 +02:00
pancake
d9d4e7f889 Initial implementation of fs.squash and merge squashfs-tools 2016-03-30 16:01:24 +02:00
pancake
af2f02515f Support and load r_fs plugins 2016-02-21 02:32:28 +01:00
pancake
42acaa7596 Softly kill boolt type 2016-01-03 02:05:26 +01:00
XVilka
720341c2df Improve -fPIC handling, take 2 2015-10-09 22:24:15 +03:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
pancake
5064a640fa Initial de-grub-ization of r_fs. DOS partition parser
- Implement simple LGPLd DOS partition parser
2015-01-28 04:34:53 +01:00
jvoisin
a4182641b9 Fix more coverity issues 2014-07-28 18:18:01 +02:00
Anton Kochkov
7c6c706804 Fix CID 1134984 2014-05-02 14:43:51 +04:00
pancake
6eb7a5ed2f Move grub into shlr 2013-12-14 03:51:18 +01:00
pancake
9c8692ab06 Some udis86 anal fixes, update sdb and fix mingw32 build 2013-05-14 01:53:52 +02:00
pancake
f70dbe784b Fix --host crosscompile (acr 0.9.2) 2013-02-06 11:47:31 +01:00