28351 Commits

Author SHA1 Message Date
pancake
e03d58986f Add RSA/DSA key magic ##magic 2022-07-12 13:03:06 +02:00
pancake
3d8bafccce
Handle the s# command as in 's #' ##shell 2022-07-12 02:42:30 +02:00
pancake
5116fd257c Fix macho swizzle bug by cloning the plugin struct ##bin 2022-07-12 02:42:00 +02:00
pancake
9444078aa9 Fix asan heap oobread in the tms320 disassembler ##crash 2022-07-09 11:39:06 +02:00
pancake
1e4347966b [5.8.0] - Future reminder to remove a global 2022-07-08 23:46:48 +02:00
pancake
dc357e9145 Minor CI fixes 2022-07-08 23:32:15 +02:00
Ilya Trukhanov
2023665fb0
Fix x86 - ROL RCL ROR RCR with memory locations ##esil
These instructions work fine with registers:
```assembly
mov eax,0x10
ror eax, 0x18
```
That is translated to esil as:
```
1785643824,eax,=
24,eax,>>>,eax,=
```
But when working with memory locations:
```assembly
mov dword [esp + 0x14], 0x6a6ec330
ror dword [esp + 0x14], 0x18
```
That gets translated to esil as:
```
1785643824,0x14,esp,+,=[4]
24,0x14,esp,+,[4],>>>,0x14,esp,+,[4],=
```
Which doesn't work because `0x14,esp,+,[4]` is evaluated to
`[esp+0x14]`, not `esp+0x14`. `0x14,esp,+,[4],=` then tries to assign to
`[esp+0x14]`, instead of correctly assigning to `esp+0x14`.

This change fixes the problem by translating:
```assembly
ror dword [esp + 0x14], 0x18
```
To:
```
24,0x14,esp,+,[4],>>>,0x14,esp,+,=[4]
```
So the instructions work with memory locations, as well.
2022-07-08 22:57:07 +02:00
pancake
e3c09aa9c6
Build r2 with muon+samu ##ci
* Remove asm.arc leftovers
* Fix r2pm -r return value
2022-07-08 22:44:46 +02:00
pancake
e7335cfebd Dont build anal.arc with meson odr conflict with xtensa 2022-07-08 21:57:16 +02:00
pancake
52be3062d1 Use more MUSTUSE and fix warning 2022-07-08 21:53:23 +02:00
Dennis Goodlett
5a6b3d5125
Fix leak in wasm opcode disassembly ##anal
* Fix leak in wasm opcode disassembly ##anal
* Remove dead code
2022-07-08 21:42:53 +02:00
pancake
652f96aadc
Fix ARC tests and improve r2r.asm output ##tests 2022-07-08 21:42:28 +02:00
pancake
b6186969eb
Merge arc from asm into anal and build it with meson ##refactor 2022-07-08 20:03:18 +02:00
pancake
77708acd92
Merge v850.np into v850 ##refactor
* DIsguise `dispose` as a `ret` when 3 arg involved
* The old v850 plugin is available via asm.cpu=e0
2022-07-08 19:20:18 +02:00
pancake
4ab05040c5
Publish m1 packages automatically on release time ##ci 2022-07-08 12:39:26 +02:00
Sergi Àlvarez i Capilla
3e8bea04eb Early check to avoid null deref on files with missing buffer ##bin
* Caused by a bug when xtr plugin doesnt provide the right data back
2022-07-08 12:30:31 +02:00
pancake
0fe2fab15c Workaround for the fatbin slice selection regression ##bin 2022-07-08 12:30:31 +02:00
condret
30168a2065 Use arch/bits info from anal if asm is not available in r_core_bin_update_arch_bits ##refactor 2022-07-08 12:30:31 +02:00
condret
230f735c52 Merge asm_x86_cs into anal_x86_cs ##refactor 2022-07-08 12:30:31 +02:00
pancake
091b7c96c2
Fix last covs and support mount in ms ##fs 2022-07-08 09:51:21 +02:00
pancake
ad1add71cb
Fix a new linting to remove the double error message in RLOG calls ##lint 2022-07-07 20:25:26 +02:00
pancake
34b21efc1e Fix mips identification via RArchConfig instead of RAsm 2022-07-07 19:16:22 +02:00
pancake
8939854b8c Honor opasm in rasm2 -LL output ##tools 2022-07-07 19:02:56 +02:00
pancake
f78330e37e
Merge asm.mips(cs,gnu) into anal.mips ##refactor 2022-07-07 18:43:00 +02:00
pancake
3a509e819d
Refactor the RFS.Shell and add the getall command ##fs 2022-07-07 17:56:39 +02:00
Sergi Àlvarez i Capilla
1914cdc432 Add line count history helper scripts ##ci 2022-07-07 13:31:31 +02:00
Sergi Àlvarez i Capilla
ba6c067ccc Update to the latest capstone with fixes for ebpf, tls and arm 2022-07-07 12:40:25 +02:00
pancake
cde375da69
Merge asm.tms320 into anal.tms320 ##refactor 2022-07-07 12:40:05 +02:00
pancake
a297b27773 Add fs.cwd to define default path in ms ##fs
* Remove unnecessary global variable
2022-07-07 11:10:53 +02:00
Dennis Goodlett
d77eb85476
Refactor wasm custom name parsing ##bin 2022-07-07 03:40:57 +02:00
pancake
f2edc67c97 Fix onnu command usage and test 2022-07-07 03:39:36 +02:00
pancake
a7399890fe Tiny optimization in RBuffer -0.01s speedup ##io 2022-07-07 03:39:36 +02:00
Sergi Àlvarez i Capilla
9c9095aa92 Fix race condition in radiff2 test 2022-07-07 02:14:08 +02:00
pancake
1cf4e53c7b
Fix two more projects tests with the new onnu ##projects 2022-07-07 02:12:29 +02:00
Sergi Àlvarez i Capilla
3805619337 After release version bump 2022-07-07 02:08:15 +02:00
Lazula
dddd13a7dd
Partial #19887 - Refactor c[248], add and test c[248]* ##shell
* Improve argument handling
* Don't allow c1*
* Add * mode for c[248]; Uses c* code
2022-07-07 01:58:11 +02:00
Sergi Àlvarez i Capilla
5bc3bf4e6c Release 5.7.4 5.7.4 2022-07-07 00:40:00 +02:00
pancake
04ec65efb5
Fix o-- issue on macho-arm64 ##bin 2022-07-06 11:07:59 +02:00
condret
0995ae0111 Fix loading xtr bins without arch dedicated asm plugin loaded ##core 2022-07-05 18:57:45 +02:00
condret
d6720b9597 Honor syntax cfg in cs anal plugins ##anal 2022-07-05 18:57:45 +02:00
pancake
d7f19855ff Fix mountpoint listing in the rfs shell ##fs 2022-07-05 17:18:18 +02:00
pancake
bd3cc5f205 Disable failing test 2022-07-05 16:40:53 +02:00
pancake
e14ad80de7 Fix windows build 2022-07-05 16:05:41 +02:00
pancake
edff5c4886 Reflect the state of the master branch build badge 2022-07-05 13:39:04 +02:00
pancake
332574aeb5
More eprintf -> RLOG here and there ##refactor 2022-07-05 13:34:13 +02:00
Richard Patel
88c5447da9 Re-enable the bpf.mr assembler ##arch 2022-07-05 12:47:53 +02:00
pancake
8c80cfe7d9 Fix #20405 - Multiple fixes and improvements in projects ##projects
* io maps are now saved and restored
* add an extra test and review/update others
* Use omu in om* and run o*;om* in P
* Better handling multiple P subcommands and help msg
* Use more R_LOG instead of eprintf
2022-07-05 10:56:04 +02: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
550b6764aa Add R_MUSTUSE hint ##lint 2022-07-04 18:21:11 +02:00