465 Commits

Author SHA1 Message Date
condret
fc61e4f1ee Kill r_io_read_at_mapped ##io 2022-12-11 23:27:46 +01:00
pancake
97a6439055 Do the same for __WINDOWS__ -> R2__WINDOWS__ 2022-12-10 20:32:10 +01:00
condret
36bf340b4e Kill io->buffer ##io 2022-12-02 03:48:29 +01:00
pancake
a79add6dff
Update sdb to remove double include paths ##build
* Updated pkg-config paths
2022-11-19 01:05:18 +01:00
pancake
b705e334f6 Massage more R2_580 pending changes breaking APIs and ABIs 2022-09-16 11:34:19 +02:00
pancake
03f70c6ec8
Fix use-after-free in the macho swizzler ##bin 2022-07-27 10:22:12 -04:00
pancake
332574aeb5
More eprintf -> RLOG here and there ##refactor 2022-07-05 13:34:13 +02:00
condret
2f06bd20b0 Fix potential bug in r_io_nread_at ##io 2022-05-27 09:19:19 +02:00
pancake
f91c7abc69
Fix the io.rbuf plugin (broken since 2017) ##io
* Allow zero-copy file loading once again
* Honor sandbox settings for safetiness
2022-05-20 14:20:47 +02:00
pancake
b28057ffc8 Fix null derefs on partially initialized xtr bin plugins ##bin 2022-05-16 12:28:49 +02:00
pancake
3645aed1a9 Rename corebind fields to coreb, for consistency with analb, iob ##abi
* This change will break some more plugins
2022-05-07 11:58:38 +02:00
pancake
7699f37c7d Fix warnings spotted by latest XCode (unused variables) 2022-03-17 10:12:02 +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
3da46ed758 Fix #19463 - io write error reporting regression ##io 2021-12-05 12:41:29 +01:00
condret
44e3ff56ce Remove r_io_map_new from public API ##io 2021-11-03 17:55:39 +01:00
pancake
6871d2178f free/fini methods should return void ##refactor 2021-10-29 12:20:24 +02:00
condret
2d991d979b Remove use_banks switch from RIO 2021-10-26 00:44:45 +02:00
condret
fe87ab37a0 Remove redundant RPVector maps from RIO 2021-10-26 00:16:09 +02:00
condret
0d27338fba Remove map_skyline from RIO 2021-10-25 22:49:32 +02:00
condret
acbe609b44 Use io banks by default ##io 2021-10-25 18:41:23 +02:00
condret
04998a7135 Fix r_io_map_resize for io banks 2021-10-25 02:48:21 +02:00
condret
c6ab2d5182 Add iobank support to r_io_read_at_mapped ##io 2021-10-23 23:40:36 +02:00
condret
3cfbca7297 Fix {read/write} access beyond UT64_MAX if io banks are enabled 2021-10-23 18:33:10 +02:00
condret
0629f9ffaf Enable io bank support in r_io_nread_at ##io 2021-10-17 03:30:47 +02:00
condret
abeb3b134c Enable io bank support in r_io_v{read/write}_at ##io 2021-10-16 23:53:33 +02:00
condret
220f56881d Fix resource leak and logic bug in r_io_reopen ##io 2021-10-12 23:44:53 +02:00
Sergi Àlvarez i Capilla
4020dfe52a Fix reopen regression on Windows 2021-10-12 20:24:32 +02:00
pancake
dfd67eb444 Fix zero index on null deref on bank init spotted by latest clang 2021-10-10 12:14:47 +02:00
condret
87a38708e0 Enable io-bank support in r_io_map_new ##io 2021-10-10 00:04:10 +02:00
pancake
704bf823d1
Cleanup and boolify some more debug apis ##refactor 2021-10-04 20:56:34 +02:00
pancake
690f6e6f8f
Boolify RIO.close() ##refactor 2021-10-04 14:47:22 +02:00
condret
ed311e825f Some cleanup and code deduplication ##io 2021-09-23 16:54:33 +02:00
pancake
199976b926
Initial io.banks management commands ##io 2021-09-22 16:44:54 +02:00
condret
9729c8da04 Implement r_io_bank_{free,init,fini] (siol_eternal) ##io 2021-09-20 22:10:08 +02:00
pancake
fa7f54a08c
Add rafind2 -L to list IO plugins (same as r2 -L) ##tools (#18771) 2021-05-28 13:02:12 +02:00
pancake
f98bdc775f
Add dbg.wrap for changing want_ptrace at runtime ##debug (#18607) 2021-04-21 12:07:01 +02:00
pancake
80f861a71d
Implement custom bit size cyclic memory layout and wrap flags in ##io (#18417)
* Repeated maps dont have executable permissions
* This is used on s390, ARMv4 (and lower) and some v850
* Added some basic tests
2021-03-14 16:55:57 +01:00
condret
1fae2164cb Rename r_io_map_get_for_fd to r_io_map_get_by_fd ##io 2021-03-12 20:52:45 +01:00
condret
eb48818342 Rename r_io_map_get to r_io_map_get_at ##io 2021-03-12 17:56:46 +01:00
Dennis Goodlett
528e6598a1
Add arall:// and liball:// open_many plugins #io (#18196) 2021-01-10 17:34:38 +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
GustavoLCR
203878e60e
Optimize io.cache ##io (#17952)
* Add RSkyline ##util
* Add `r_vector_len()`
* Optimize io.cache ##io
* Use RSkyline instead of RList
* Add cache skyline for faster reads
* Use PJ API in `wcj`
* Add test and fix
2020-11-23 12:36:32 +08:00
GustavoLCR
0ca7d6c3c1 Add RIO on write event ##io 2020-11-01 02:12:14 +01:00
Riccardo Schirone
1e58692071
Fix incorrect uses of printf-like functions ##refactor (#17648) 2020-10-13 16:26:15 +02:00
pancake
b5b2daf69a
Fix warning not addressed in cef191cde31cbef1da12562cda91e629eabdde93 (#17456) 2020-08-26 11:01:56 +08:00
GustavoLCR
cef191cde3
Fix #14024 - Make r_io_map_get() faster (#17324) ##io
* Fix O(n) in r_io_map_get() ##io
* Kill `map_skyline_shadow` and `do_skyline`
2020-07-31 10:04:57 +02:00
pancake
160fc95e66
Use (void) instead of () in function signatures (#17026) ##refactoring
* Use (void) instead of () in function signatures
* Add test to avoid further contributions to commit the same mistake
2020-06-14 16:08:32 +02:00
pancake
d0c0cf13a8 Boolify r_io_shift 2020-04-13 20:05:03 +02:00
Florian Märkl
9a2effd5ed
Use RPVector for io->maps - speedup map traversal ##io
- The 64K section bin now loads in 15s instead of 26s
2020-04-07 12:43:41 +02:00
Riccardo Schirone
2ec4a2a92c Fix memory leak due to not freed uri 2020-02-21 23:58:24 +01:00