Commit Graph

30117 Commits

Author SHA1 Message Date
pancake
e5a10638f7 Fix warnings on xattr io plugin on linux 2023-04-12 12:47:33 +02:00
pancake
277e0aa606 Fix #21559 - k&r syntax is deprecated for c2x compat reasons 2023-04-12 11:56:24 +02:00
pancake
21414a0dc8 Fix REG_SP redefinition on rv64 builds 2023-04-12 11:24:58 +02:00
pancake
77b091d618 Avoid large allocation in the elf parser ##crash 2023-04-12 11:06:21 +02:00
pancake
c2801306f3 Check for null pointers in uleb and dwarf ##crash 2023-04-12 11:06:21 +02:00
AlexanderKucherov
d5e8678c10
Fix #21576 - Function stack frame size in case of FP register in a Thumb's PUSH ##anal 2023-04-11 23:29:31 +02:00
Luc Tielen
494c21467b
Refactor loading of mach0 libraries ##bin
* Use less allocations in mach0 parser

Co-authored-by: Luc Tielen <ltielen@nowsecure.com>
Co-authored-by: pancake <pancake@nowsecure.com>
2023-04-11 23:19:04 +02:00
pancake
caf010de2a
Fix SocketNotificationRetrieveEvents already defined issue ##build 2023-04-11 16:59:34 +02:00
Luc Tielen
38d0257b74 Implement review remarks for mach0 import parsing ##bin 2023-04-11 16:05:53 +02:00
Luc Tielen
89d29a7b52 Refactor mach0 loading of imports ##bin 2023-04-11 16:05:53 +02:00
Luc Tielen
b0c267e827 Refactor string comparisons in macho parser ##bin 2023-04-11 16:05:53 +02:00
pancake
6b1d05e31b Add -v, -vj and the 'r2.' command as a short for js oneliners ##shell 2023-04-11 15:10:20 +02:00
pancake
bf965bdd85 Implement zip0:// uri handler ##io
* Open the first file inside a zip
* Add test for zip0://
2023-04-11 14:30:03 +02:00
pancake
e89a521642 Only run 'diq' in visual when cfg.debug ##visual
* diq stands for debug process info, useless for esil
2023-04-11 14:30:03 +02:00
pancake
0fddb6c0d7 Implement pseudo for riscv's 'auipc' instruction ##disasm 2023-04-11 14:30:03 +02:00
pancake
9f90b76155 Large null:// allocation causing negative pointer issues on iobank ##io
* Crash reproducer 9e248945-73a7-4cd7-906b-1544a0a3cc36
2023-04-11 14:02:01 +02:00
pancake
c6ff4a7338 Fix oobread in omu command ##crash 2023-04-11 13:47:25 +02:00
pancake
70587b75da Fix large allocation bug in the elf version parser ##crash 2023-04-11 13:01:43 +02:00
pancake
9a74377d69 Fix null derefs in the dwarf parser ##crash 2023-04-11 13:01:43 +02:00
pancake
9501a38638
Dont use strtok in the riscv plugin ##arch 2023-04-10 23:38:44 +02:00
pancake
109a8ddd0a
Fix '\xff' strings issue in bsd-rv64/arm64 ##disasm 2023-04-10 13:28:07 +02:00
pancake
767dc394f8
Improve code quality of the dmh command
* Avoid strtok, strcmp ("\0") and other abominations
2023-04-10 12:54:51 +02:00
pancake
07df4144eb Native debugger for OpenBSD and NetBSD on arm64 ##debug 2023-04-10 09:19:30 +02:00
pancake
4968d69f18
Migrate the hppa.gnu ##arch 2023-04-09 23:20:32 +02:00
pancake
b5cd2f3731 Improve RTable trailing spaces ##print 2023-04-09 18:07:50 +02:00
pancake
5bf6f11c9c Add experimental zign.mangled to not use demmangled symbol names ##signatures 2023-04-09 18:07:50 +02:00
pancake
93b2886ade Use "" command syntax for the z* output ##signatures 2023-04-09 18:07:50 +02:00
pancake
7f4992b588 Add demangled column in the symbol listing ##bin 2023-04-09 18:07:50 +02:00
pancake
f740d7b72e Fix trailing spaces in table ##print 2023-04-09 18:07:50 +02:00
pancake
d7f85e87ed Fix test 2023-04-09 18:07:50 +02:00
pancake
de31667fc8 Add LC_AOT_METADATA parsing support for mach0 ##bin 2023-04-09 12:42:11 +02:00
pancake
d7b083c068 Implement 'piE' command, like 'pie' but for bytes instead of ops ##print 2023-04-09 12:03:57 +02:00
pancake
590d6412fe Dont emulate null instruction types, causing invalid analysis ##esil 2023-04-09 11:41:36 +02:00
pancake
e40490c5f2 Fix #21564 - 128bit support via [16] and RReg for arm64 ##esil 2023-04-09 11:41:36 +02:00
pancake
ce02212bfe Migrate the sparc.gnu plugin ##arch 2023-04-09 01:48:18 +02:00
pancake
f4821f733a Partial fix as an example for #21559 2023-04-09 01:03:52 +02:00
pancake
0cf6e7a5cc Fix RReg.setValue on 128bit registers ##reg
* Still limited to 64bit values
2023-04-07 20:18:48 +02:00
pancake
c6a32fd1a0 Update tests 2023-04-05 18:50:09 +02:00
pancake
40f1ebe64c Add support for ""ec in theme files ##cons 2023-04-05 17:32:18 +02:00
pancake
123bcd7e83 Improve color support in graphviz, still wip ##graph 2023-04-05 17:24:21 +02:00
pancake
1370752021 Improved instruction mask using the new aobm and anal.mask ##anal 2023-04-05 14:31:19 +02:00
pancake
25de52db5f
Initial implementation of the 'cgfa' command ##diff
* List all similar functions
2023-04-05 14:30:39 +02:00
pancake
259cf507f4 Add ?ee and ?ei command for stderr echos ##shell 2023-04-05 13:40:57 +02:00
pancake
91d5c5c98f
Add crosscompiled arm64 debian builds ##ci 2023-04-05 12:48:11 +02:00
pancake
b6d777275c Better typescript entrypoint support and fake r2pipe ##lang 2023-04-05 11:29:22 +02:00
pancake
38d4b86693 Support running typescript files without r2's Gmain ##lang 2023-04-05 02:07:26 +02:00
pancake
46229e33ea frida-compile bundles can contain anything, we only interpret/load the .js ones ##lang 2023-04-05 01:59:38 +02:00
pancake
00205c687d
Reuse recusion in c++ demangling with lower bounds ##bin 2023-04-05 01:52:01 +02:00
pancake
d8420d4dca Improve brainfuck VM using ESIL and arch restrictions ##arch
* Instruction size must be 0xff instead of 32, to handle long jumps
* Registers are 32bit, so internal stack must use 32bit words
* Fix loop logic using simplified conditionals
2023-04-01 11:38:31 +02:00
Luc Tielen
58cc69f0dd Migrate the brainfuck ##arch 2023-04-01 11:38:31 +02:00