Commit Graph

781 Commits

Author SHA1 Message Date
RHL120
7435f87982
Add an error return to r_core_project_cat ##projects
* Minor changes to r_core_project_cat
* Use core->num->value in r_core_project_cat
* Add a test
* Fix project return value
* Fix Pc return value test

Co-authored-by: Lazula
2022-04-17 18:58:26 +02:00
Lazula
8bc9678023
Fix trailing space in om command when map->name is empty (#19965) 2022-04-17 18:11:33 +02:00
Lazula
f3162fda40 Refactor and rename __core_cmp_bits to cmp_bits 2022-04-16 17:19:12 +02:00
pancake
c234538b8c
Fix #16335 - tp not handling blocksize properly ##types (#19955) 2022-04-13 20:43:30 +02:00
pancake
d4a7c58bd0 Fixes for the Trim.args() for ?e ##shell 2022-04-13 10:14:15 +02:00
pancake
cb097fe79b Fix three tests failing on non-x86-64 hosts 2022-04-13 01:38:45 +02:00
Dennis Goodlett
a0a5428154
Update byte signature flag name ##signatures 2022-04-12 11:31:27 +02:00
pancake
31cd732a00
Honor escaping semicolons in macro definitions ##shell
* WIP (disabled by default) make RStr.trimArgs() work on ALL commands
* Honor escaping special chars in command calls
* Add test for echo and macro definitions
2022-04-11 16:54:26 +02:00
pancake
13c2f23dd7 Fix #19940 - infinite loop in x/i on invalid instructions ##crash
* Also affects pdi and pde
2022-04-11 13:47:47 +02:00
pancake
296d094f36 Add the cmp command to compare two (alias) files ##shell 2022-04-10 18:16:18 +02:00
Lazula
0c4af43def Trim extra spaces before second argument in ?== 2022-04-09 22:38:20 -05:00
pancake
c566ff2f7e
Implement @c: temporal seek operator ##shell 2022-04-09 14:06:38 +02:00
pancake
6d5628cd96
Add psa command to print any kind of string ##print 2022-04-08 20:36:10 +02:00
Sergi Àlvarez i Capilla
153bcdc29f Fix oobread in NE parser ##crash
* Reported by @hmsec via huntr.dev
* Reproducer: necrash
* BountyID: 52b57274-0e1a-4d61-ab29-1373b555fea0/
2022-04-08 20:29:01 +02:00
Fernando Domínguez
8317a34b7e
Fix glob matching in several cases ##shell 2022-04-02 20:34:56 +02:00
pancake
6ffe920cf9
Add missing 'direction' field in the output of aoj ##analysis 2022-04-02 13:42:46 +02:00
Lazula
2a4f12d43d
Partial #19887 - Refactor, document, and test cw command (#19889)
* Change cmpwatch functions to bool to better report status
* Ensure existing watchers are correctly overwritten
* Speed up other cw commands by leaving list iteration early
* Emit output in subcommands when no watchers matched the query
* Add cwq and cwj
* Add cw tests
* Change cmd_cmp_watcher() to return int instead of void
* Add r2book reference
* Require confirmation before deleting or reverting all watchers
* Change watcher cmd to malloc'd char*
2022-03-31 11:07:32 -05:00
Sergi Àlvarez i Capilla
9857ac6d4e Add tests for return value emulation 2022-03-30 17:56:35 +02:00
condret
d1ebd1588a Fix bug in z/, that creates misplaced functions ##zign 2022-03-29 14:34:41 +02:00
Lazula
c7dfa70ade Remove last vestiges of newshell 2022-03-29 08:07:18 +02:00
pancake
374b86e866 Fix seek history for the 's..' partial seeks ##shell 2022-03-27 14:24:02 +02:00
pancake
42d05b7bd1
Add support for parsing swift metadata from macho binaries ##bin
* __const section is formatted as dwords
* Fix swift5 symbol demangling on iOS / macOS
2022-03-27 11:13:07 +02:00
pancake
3760bfcd8d
Add tests for the code tokenizer and fix <<= assignments ##util 2022-03-26 10:35:13 +01:00
max-lv
7043983bd2 Fix PPC ESIL of addis instruction ##esil 2022-03-25 23:01:26 +01:00
pancake
0fd97c27a7
Assume all machos are made by clang ##bin 2022-03-25 13:43:49 +01:00
pancake
801dd326a0 Remove the hexagon from anal ##analysis
* Too large (2.2MB) and too slow to build, time explosion with -O2
* It's outdated and not maintained, better use r2ghidra one
* Move this code into extras (or the updated one)
* Still available via r2pm
2022-03-22 01:04:34 +01:00
pancake
69815e22e4
Fix #19838 - Show pins in the disassembly as comments ##disasm 2022-03-20 10:49:53 +01:00
aemmitt-ns
8138a5d977
Add R0 and F0 aliases, add register profile for MSP430
* fix arp tests
2022-03-18 15:03:09 +01:00
Sergi Àlvarez i Capilla
b0f1c3716f Update tests related to the missing R0 in the regprofile for x86-64 2022-03-16 17:10:14 +01:00
Sergi Àlvarez i Capilla
e8c00902b7 Fix dirty esil regression 2022-03-16 16:43:40 +01:00
pancake
3020803a39 Fix aecs and add test emulating hello world without libc ##esil 2022-03-16 15:33:03 +01:00
Sergi Àlvarez i Capilla
43a2ee3686 Improve the way asm.nbytes plays with asm.flags.inbytes ##disasm 2022-03-15 17:43:36 +01:00
pancake
16b3ff90b0
Fix #19489 - Implement assembler for jrcxz ##asm 2022-03-15 17:42:48 +01:00
Sergi Àlvarez i Capilla
cedcd24508 Update tests 2022-03-15 11:40:03 +01:00
pancake
63d4172d94
Fix last covs, mainly memleaks and update one test 2022-03-11 13:14:46 +01:00
pancake
b2cb721bf0
Restrict local vars and args in a 8KB range, otherwise skip ##analysis (#19811)
* Update and verify tests accordingly, new output is better
* Optimize function emulation by reusing bbdata
2022-03-10 16:45:59 +01:00
aandersonl
947cae8599 Adds afva in all fcns flags (if any) ##analysis
* Analyze vars only if variable `anal.vars` is set adds some tests for variable/arguments analysis fix in anal/mips
* Fix get_config as boolean and use expressions for analyze all functions
2022-03-09 16:56:07 +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
pancake
a5489ebff3 Update tests accordingly 2022-03-07 17:18:53 +01:00
Lazula
897624cbcc Clean up files in tests 2022-03-04 09:48:42 +01:00
Lazula
30038c13f7 Remove usage of wc and awk from tests 2022-03-04 00:27:01 +01:00
Sergi Àlvarez i Capilla
7269a3f5d4 Fix issue in asm.tabs.once causing iaito to trim instructions ##disasm 2022-03-03 13:15:02 +01:00
Lazula
55bfe93735 Fix problems in l command 2022-03-03 09:31:08 +01:00
Jules Maselbas
413951f5f1 kvx: Update test/db/cmd/cmd_k for new architecture KVX 2022-03-02 13:56:34 +01:00
Lazula
0cb960087d Make grep begin, end, and negate properties per-word 2022-03-01 15:51:53 +01:00
Lazula
bc877cbef6 Kill dsjson, use PJ for java json, fix java prototypes j 2022-03-01 15:50:39 +01:00
Lazula
64edc476ff Add test for wtff 2022-03-01 07:26:00 +01:00
pancake
4df6a64945 Update to the latest capstone, fixing arm64 issue 2022-02-28 10:27:56 +01:00
pancake
9779982241 Find strings on maddr'd binaries with izz ##bin
* Test with and without the -m
2022-02-27 19:56:31 +01:00
pancake
19bb45f78f Honor ArchInfo.opalign in pia ##disasm 2022-02-26 00:57:05 +01:00