1101 Commits

Author SHA1 Message Date
pancake
8994ff6bd3 Switch some eprintf to use R_LOG apis instead in core 2022-08-19 11:11:08 +02:00
pancake
7a35f03471 More source spacing linting 2022-08-18 14:37:29 +02:00
pancake
db7741247e Fix autocompletion for :.<tab> for r2frida ##shell 2022-08-09 20:50:16 +02:00
Paul B Mahol
802eb32aa2 Fix leaks of allocated memory for duplicate plugins ##tools 2022-08-05 14:26:05 +02:00
Paul B Mahol
02e306efa2 Fix leaks when switching color themes 2022-07-31 14:24:10 +02:00
Paul B Mahol
8ffa196193
Fix not calling r_asm_op_fini() when needed (#20506)
The RAsmOp is used on stack when disassembling and after its content is not need it needs to call its _fini to free possible heap memory previously allocated.
2022-07-29 07:30:05 -04:00
Paul B Mahol
b446f7ab47 Fix some memory leaks caused by buggy macros for reference counting 2022-07-24 15:24:32 -04:00
pancake
21064e9473 Add omu command to create a unique map ##io
* Add another broken project test
* Fix warning regression introduced in previous windows fix
2022-07-04 21:24:40 +02:00
Sergi Àlvarez i Capilla
5df05f446f Fix few type cast issues spotted by msvc 2022-07-04 18:46:54 +02:00
pancake
9f12bfd0a8
Get rid of some globals and tls-ify others 2022-07-03 10:01:58 +02:00
pancake
504002fca2 Few http webserver improvements ##web 2022-07-01 11:08:05 +02:00
pancake
3db3750eb0
Lint for x"" ##cleanup 2022-06-28 12:07:58 +02:00
pancake
8d88e1208d Fix echo q|r2 return code 2022-06-28 02:00:26 +02:00
pancake
deb75acf78 Fix history file path construction ##shell 2022-06-21 23:48:57 +02:00
pancake
d1e1fb3622 Fix assert check in pxr 2022-06-20 01:00:30 +02:00
pancake
e095f9332a Fix #20248 - DoubleFree in RCons.pop() triggered via RCore.cmdStr() ##crash 2022-06-08 23:18:50 +02:00
Lazula
c496680619 Optimize alias iteration to linear time and improve alias help 2022-06-03 20:45:01 +02:00
pancake
3b0ae93165
Fix last covs from recent changes (v850 spaces/uaf, macho/io nullderefs) 2022-05-31 02:14:16 +02:00
pancake
b886e87fbd Another improvement for 247042b6685fb70c2551e613bee353831d8dfdd5
:x
2022-05-27 10:04:55 +02:00
pancake
c2f4c7029f Fix large loading times in macho parser for binsz=-1 ##bin
* Reproducer: `r2 -c 's r2f.modulebase;oba $$' frida://0`
2022-05-27 02:12:55 +02:00
pancake
247042b668 Fix crash when doing aac in frida://0 which calls 's $S' ##anal 2022-05-27 02:12:55 +02:00
pancake
93d9860f41
Add test for 'q' return code bug and minor cleanup r2r ##tests 2022-05-26 12:41:49 +02:00
pancake
8c5ffa6fe2
Use RArchConfig in RPrint ##api
* Unify seggrn, segbas, bits and endian into a single referenced struct
2022-05-22 01:02:56 +02:00
pancake
6b28a44133 Tiny fixes for the v850.np esil ##esil 2022-05-22 00:55:56 +02:00
pancake
af4c941825
Add ec bgprompt for a colorful shell and visual prompts ##cons
* ec bgprompt=red blue ; ec prompt=green yellow
2022-05-20 21:47:30 +02:00
pancake
6a832aad6c
Use RArchConfig in RReg, Add RReg.hasbits() apis ##anal
* Remove unused variables in RReg struct
* bits and big_endian is checked from archconfig
* hasbits is now accessed via api
* Ensure bits are a valid value
2022-05-17 10:12:42 +02:00
pancake
ac19624e21
Initial import of the RThreadChannel API with the ::x command ##core 2022-05-08 04:04:50 +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
90bd713794 Add d: to run the cmd callback of the debug plugins ##debug 2022-05-07 11:58:38 +02:00
pancake
5b7c970f2b eprintf requires newline
* git grep eprintf | grep -v '\\n'| grep '('
2022-05-05 13:11:52 +02:00
pancake
f855443586 What's bool stays bool, makes eval changes more consistent ##projects 2022-05-05 10:05:07 +02:00
pancake
c54ce884d8
More cleanups related to the r_arch commit 2022-04-28 12:53:49 +02:00
pancake
560f7fb424 Introduce r_arch.h. Use RArchConfig in RAnal and improve RRef api ##api
* Fix unaligned issue in hex asan test
2022-04-24 23:11:26 +02:00
pancake
f35fd1c33e
Initial implementation of shared RAsmConfig ##asm (#19972) 2022-04-22 19:47:25 +02:00
Lazula
724d23a6c0
Refactor, fix, and test dd command (#19842)
* Test dd commands
* Improve dd help text
* Move dd command into a self-contained function
* Take correct arguments for ddr and ddw
* Add O_CREAT to dd+ flags for python-style automatic creation
* Add permission checks to ddr and ddw

Linux debug file descriptor info bugfixes (`linux_desc_list()`)

* Fix normal files being reported as sockets due to inaccurate S_IFSOCK check
* Fix file descriptor permission reporting
* Implement offset checking functionality
2022-04-19 07:43:54 -05:00
pancake
818fc91ec8 Fix last covs - memleaks and null derefs 2022-04-11 21:16:36 +02:00
pancake
d60ab7010f Fix last covs 2022-04-01 12:50:39 +02:00
pancake
80bde99c7f Support relative pointer resolution in pxr ##print 2022-03-27 15:07:56 +02:00
Sergi Àlvarez i Capilla
7234cf5b8c Fix double-free in RCore.free 2022-03-23 15:46:49 +01:00
Lazula
6c868bb010 Last improvements for this patch 2022-03-23 11:53:03 +01:00
Lazula
879fbbbb35 Improve flag autocompletion 2022-03-23 11:53:03 +01:00
Lazula
626fd46553 Improve file redirect autocompletion 2022-03-23 11:53:03 +01:00
Lazula
5d4f8f83ca Improve #! autocomplete when tabhelp is enabled 2022-03-23 11:53:03 +01:00
pancake
8089224302 Improve help message for dd? and autocomplete ##debug 2022-03-17 18:36:13 +01:00
Lazula
d507bda91c Remove R_EMPTY and R_EMPTY2 2022-03-13 11:26:10 +01:00
Lazula
90ce9c795e
Fix dd command and update tests accordingly ##debug
* Add quotes around filename for dd command
* Account for string argument size in r_core_syscall()
* Fix command comments for dd
* Use a constant static stack size in r_core_syscall()
* Allow passing an address of the filename in memory for dd
* Change consumeBuffer() to print_buffer_hex()
* Improve dsue error message
* Update egg tests
* buf ownership is transferred to egg, dont free
2022-03-09 10:20:49 +01:00
Lazula
abf8041130 Improve scr.prompt.flag to include offset and hex delta 2022-03-09 09:11:32 +01:00
pancake
837d781879 Fix memory leak in RCore.cmdQueue 2022-02-24 11:57:28 +01:00
Sergi Àlvarez i Capilla
a4af656774 Support local charset file loading and fix echo issue in sdb ##charset 2022-02-12 23:04:42 +01:00
pancake
52f2f8a2bb Add scr.color.ophex to colorize 'px' with opcode type ##print 2022-01-24 00:00:10 +01:00