Commit Graph

94 Commits

Author SHA1 Message Date
Francesco Tamagni
2ba8d835fe Don't ask sections if fixed arch / bits set ##core
Avoids unnecessary iteration of all the sections to get the value of
bits and arch, in case they're fixed.
2024-07-22 17:43:04 +02:00
pancake
e598e67714 Fix the last cov, a null deref in cio.c 2024-03-31 03:53:35 +02:00
pancake
ff2f2a312b
Fix #22767 - Some UB when malloc(0) in RBuffer api ##crash 2024-03-30 12:07:33 +01:00
pancake
8644a29556
Fix #22648 - Improve error messages when writing to io 2024-03-30 11:31:02 +01:00
Luc Tielen
86b7f47db9
Remove several R2_590 ifdefs ##abi 2023-06-13 13:38:23 +02:00
pancake
b422b095b4 Minor code quality improvements in core/cio.c 2023-04-25 01:43:41 +02:00
pancake
699f9d8651 Add lint for ==' to improve code readability 2023-01-16 13:43:38 +01:00
pancake
e8b17faf76 Add test for the obm with CL, support noncwd paths ##bin 2022-12-07 23:06:43 +01:00
pancake
6dcc3837af Fix segfault in poa 1 ##crash 2022-12-07 23:06:43 +01:00
pancake
c266c9e1c4 Minor comment/string colorization improvement in pdc output 2022-10-25 13:35:45 +02:00
pancake
a64c6730c9 Fix more memory leaks in rbin and ranal for arm64 ##leaks
* Fix memleak spotted by coverity
2022-10-19 00:35:44 +02:00
pancake
9e53795891 Add some RThreadLocks and start to use the critical sections ##threads 2022-09-23 22:07:49 +02:00
pancake
e5d8cc46af Add linting to avoid setting bool config vars with strings 2022-09-16 11:46:18 +02:00
pancake
de0903184a Fix last coverity findings 2022-09-12 23:18:39 +02:00
pancake
1e57fabb3e Warn when bypassing the word bounds of numeric arguments in wo ##write 2022-09-09 13:50:15 +02:00
pancake
0affc893be New syntax for wo[x]([n]+[v]) to differentiate hex and numbers ##write 2022-09-09 13:50:15 +02:00
pancake
cd10051282 Fix #20387 - woa 1 confusing error message ##shell
* Better help messages and argument handling
2022-09-09 13:50:15 +02:00
pancake
f9f9e367de Use rlog instead of eprintf in 300 more places 2022-08-22 14:35:04 +02:00
pancake
7a35f03471 More source spacing linting 2022-08-18 14:37:29 +02:00
Richard Patel
b78855c38d Refactor a few eprintf 'Cannot …' to R_LOG_ERROR 2022-08-01 16:46:46 +02: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
704bf823d1
Cleanup and boolify some more debug apis ##refactor 2021-10-04 20:56:34 +02:00
pancake
b4c4c0fe98 Implement 'woi' command to inverse contents of current block ##io 2021-09-18 22:16:45 +02:00
pancake
e7c29ed232
Boolify cfg.debug (#18452) 2021-03-14 22:22:04 +01:00
condret
eb48818342 Rename r_io_map_get to r_io_map_get_at ##io 2021-03-12 17:56:46 +01:00
Liumeo
a74ca8f07b
Remove core.file ##refactor (#18178) 2021-01-06 23:44:18 +01:00
pancake
839f438b58 Refactor tcc and afcl commands, improve help and JSON ##types 2021-01-05 02:17:37 +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
Riccardo Schirone
c8f99840ab
r_core_seek accepts a boolean as 3rd argument (#16618)
Replaces all 0/1 passed as 3rd argument to r_core_seek with false/true.
2020-04-17 12:53:35 +02:00
pancake
a52506a362
Fix #16210 - Show error message and update help for we ##io (#16427)
* Fix wen command for io.va=true, add two tests
2020-04-08 14:22:01 +02:00
Liumeo
d41bc2b878
Comparison always false (#16444) 2020-04-06 22:47:27 +02:00
radare
6ae8806411
Do not use the elvis operator for bool expressions (#16073) 2020-02-28 15:19:37 +01:00
Florian Märkl
a5e11a3f55
Refactor Anal Hints (#15876) ##anal
* Use RVector for Address Hints
* Add Arch/Bits Hint Trees
* Add Unit Tests for Addr, Arch and Bits Hints
* Add unset for newbits
* Fix jmptbl hint fetching
* Fix r_anal_*_bits_foreach
* Print grouped Anal Hints
* Fix arch bit affect on disasm
* Add Reset Hints to Commands
2020-02-13 11:48:24 +01:00
GustavoLCR
42350f4942 Initial implementation of LX/LE file plugin ##bin 2019-12-28 18:46:14 +01:00
radare
9fc6367338
Fix ignored asm.bits settings because of RBin overrides ##asm (#15677) 2019-12-18 17:33:56 +01:00
Florian Märkl
5870b5df85 Fix Alignment Check in aae on bit change 2019-12-15 23:36:44 +01:00
pancake
865fd0b902 Fix regression in wo2/4/8 2019-09-03 09:49:14 +02:00
pancake
11c5cfe5a6 Fix a couple of bugs in wo* and implment wo8 ##io 2019-09-02 21:12:57 +02:00
bagginslin
c22844b506 Fix logic in 2-byte endian swap used by "wo2" (#14951) 2019-09-02 20:54:55 +02:00
bagginslin
d67d1634cf Fix #14936 - Add po[..] set of commands ##print (#14936) 2019-08-31 16:46:07 +02:00
pancake
bd520474d7 Code cleanup 2019-08-21 12:53:41 +02:00
Carles Pey
a3d9bf170e Consider endiannes when performing block write operations ##io (#14789) 2019-08-18 01:53:07 +02:00
radare
2f2e07e8f4
Some code cleanup in RUtil.lib ##core 2019-08-09 23:49:15 +02:00
pancake
baa91ca899 Initial working implementation of bin.libs ##bin 2019-07-05 19:03:03 +02:00
pancake
d4fefa1ff9 Set cmd.gprompt=.dr* when cfg.debug=true ##debug 2019-06-10 18:07:33 +02:00
radare
14d17d5b4e
Deprecate the RBinObject.id field ##refactoring 2019-06-05 19:23:59 -04:00
radare
aea7c35ffd
Implement RBinFile.at and make it work with e bin.at ##bin 2019-06-02 11:16:08 -04:00
pancake
24cebb4ed4 Fix assert in wai trying to write an empty buffer 2019-05-21 23:45:31 +02:00
Riccardo Schirone
66f7403245 Rewrite the RBuffer API to make it safer and adjust the codebase ##refactor (#13656)
* Reimplement r_buf_fread/fwrite
* Add slice buffer and introduce readonly field
* Do nothing if size is 0
* Prevents an overflow when 8 is subtracted from size.
* Fix ragg2 when patching outside currently existing buffer
* Implement r_mem_mmap_resize for systems where mremap is not defined
* r_buf_buffer can be called with no size arg as well
* Use size_t instead of ut64
2019-05-15 15:34:06 +02:00
Riccardo Schirone
820e3dbe73
Improve r_buf_buffer and remove r_buf_get_at (#13676)
* Make r_buf_buffer return a ut8 and the associated size of the buffer
* Remove r_buf_get_at uses and make it static
2019-04-15 13:24:15 +02:00