Commit Graph

1971 Commits

Author SHA1 Message Date
pancake
2feb9d4bb1 RAnalOp.Type.CAST.toString() and implicit refptr init ##anal 2019-05-28 03:25:06 +02:00
radare
1ab587c971
Improvements in dalvik analysis ##anal 2019-05-25 23:31:06 +02:00
radare
fdcae93d3e
Initial import of the RISCV capstone plugins for asm and anal ##disasm (#14117) 2019-05-21 02:24:24 +02:00
Srimanta Barua
caf3583615 Fix rip-relative lea tests (#14083) 2019-05-16 15:55:00 +02:00
Sergi Àlvarez i Capilla
c8df20cfa8 Fix 2 problematic format strings on 32bit systems for asm.rsp 2019-05-15 23:33:29 +02:00
Srimanta Barua
e17b29d4c1 Handle LEA operand rip in x86.nz ##asm 2019-05-15 22:13:55 +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
pancake
90fd81ca81 Fix warnings here and there 2019-05-14 10:44:19 +02:00
Giovanni
5983d30738 RISC-V (GNU) ESIL ##anal 2019-05-13 18:12:10 +02:00
radare
967b9e3a82
Fix some LGTM warnings (#14047) 2019-05-13 14:09:33 +02:00
Florian Märkl
23e906ea70 Fix some warnings 2019-05-10 10:57:29 +02:00
radare
f10da2e8ef
Fix #13975 - aho issue not showing bytes ##disasm 2019-05-06 18:44:53 +02:00
David CARLIER
a6a4638c54 Asm assemble, mem leak fixes ##asm 2019-05-04 15:48:05 +03:00
pancake
2b64e50805 Do not switch to v8 by default ##disasm 2019-04-25 23:19:48 +02:00
David CARLIER
9c0ef1297d Little mem leaks fixes (#13866) 2019-04-23 00:57:08 +02:00
radare
b9df8f5001
Fix x86.nz assembler for the rip-relative LEA ##asm 2019-04-21 00:45:03 +02:00
David CARLIER
1841364814 Mips asm mem leak ##asm 2019-04-21 00:39:59 +02:00
Giovanni
bb7d741712 Enforce 32bit and jumps for VLE-PPC 2019-04-01 14:47:12 +02:00
GustavoLCR
a6107c4290 Fix arm thumb endianess (#13572) 2019-03-31 02:22:38 -05:00
Giovanni
399bba4152 Fix bugs on E_MASK_D and BD24 (343eeb9) powerpc/vle ##disasm 2019-03-29 10:26:50 +01:00
Giovanni
8058018973 Fix #11133 - Remove buf_hex frield from RAsmOp ##refactor 2019-03-26 12:50:13 +01:00
Fabrice Martinez
026c0426db * m68k architecture is always 32 bits and big endian ##anal
* SP was declared as 'sp' in the register profile which doesn't exist. Stack pointer is a7.
* Most C compilers for m68k (e.g. LatticeC) use a6 as stack frame pointer via LINK and UNLK instructions, declare a6 as BP
2019-03-22 14:52:01 +01:00
Vasilij Schneidermann
a4b76d85dd Support asm.pseudo=1 in pad command ##disasm 2019-03-22 00:43:40 +01:00
Giovanni
9b9096aa87 Sync with libvle (bugfixing & new instructions) ##disasm 2019-03-19 18:11:14 +01:00
radare
e04f31a313
Completely kill the msvc/ directory and the unix-specific includes workarounds 2019-03-19 17:34:02 +01:00
Fabrice Martinez
23b86b5c46 Fix m68k analysis issues ##anal
- Fill op->jump and op->fail for all branch and jump instructions
- Handle short and word variants of BSR (BSR.S and BSR.W)
- DBxx instructions treated as conditional branches
- Handle PC relative variant of JMP & JSR
- Bugfix for the decoding of long instructions (code in asm_m68k_cs.c assumed a maximum of 8 bytes, but maximum is 10 bytes)
2019-03-18 13:23:47 +01:00
radare
893e08a392
Initial implementation of the .offset RAsm directive ##asm 2019-03-18 10:45:22 +01:00
Giovanni
5251c20ebf Updated ppc's libvle with latest fixes ##asm 2019-03-13 12:17:32 +01:00
Vasilij Schneidermann
8f23ec216e Remove extraneous space for scd instruction for chip8 2019-03-09 15:38:06 +01:00
GustavoLCR
ff4d9a567c Fix #13244 - Assembler support for x86 bsf and bsr instructions (#13303) 2019-03-07 01:26:19 +01:00
Lev Aronsky
93ade35336 Fix memory leak in strbuf. (#13273)
* Fix memory leak in strbuf.

`sb->ptr` was set to NULL without freeing the underlying data.

* Use `R_NEW` instead of `R_NEW0`, as the memory is
initialized immediately afterwards.

* Call `r_*_op_init` in `r_asm_disassemble`/`r_anal_op`.
2019-03-06 14:04:22 +01:00
Vasilij Schneidermann
6f40c5d53d Add CHIP-8 asm descriptions ##asm 2019-03-03 02:04:49 +01:00
radare
42db45025f
Fix #13208 - Initial import of the asm.null plugin ##asm 2019-02-27 11:40:43 +01:00
-TOSH-
29eba0a3cf Try a fix for #13072 - invalid address in dalvik disassembler 2019-02-17 20:24:55 +01:00
Riccardo Schirone
23161bbf7f Remove most warnings during compilation 2019-02-14 10:40:25 +01:00
Riccardo Schirone
f702202c22 Update list of sdb files to build and install ##meson (#13065) 2019-02-12 16:12:50 +01:00
radare
364c328555
Fix vv_ and signed addresses bug in esil for x86.cs (fixes kernel emulation) ##esil 2019-02-03 18:41:11 -06:00
pancake
f33ebcbd89 Use r_return in RAsm APIs and fix some regressions ##asm 2019-02-04 00:25:27 +01:00
pancake
0daae3d9af Remove R_ASM_BUFSIZE, all buffers are now dynamic ##asm 2019-02-04 00:23:40 +01:00
GustavoLCR
8facea2680 Fix arm assembler in Windows 2019-01-31 13:38:50 -06:00
GustavoLCR
452113e7f8 Fix x86 assembler in Windows 2019-01-31 13:38:50 -06:00
Giovanni
80988e0925 Fix conversion f32.const or f64.const ##wasm 2019-01-21 12:14:24 +01:00
Pepe Vila
ddb925a9b3 Add initial Wasm support for atomic instructions. Fix get func offset from id. (#12833) 2019-01-18 16:32:33 +01:00
Giovanni
5f931603de WebAssembly improvements in branch lines and namings ##wasm 2019-01-18 11:29:51 +01:00
GustavoLCR
7bd288c454 Fix #11249 - Fix register not being assigned ##assembler 2019-01-18 11:28:27 +01:00
Simon Shi
9ed70e42e2 Fix arm 64 assemble for msr/mrs OPs ##asm 2019-01-15 09:16:45 +01:00
lzutao
1365948cee Do not use reversed keyword of meson ##build
`files` is a reversed keyword in meson. Try to avoid using it.
2019-01-10 14:15:50 +01:00
dav1901
37ea17d1a2 Minor code cleanups/fixes (#12714) 2019-01-09 22:06:12 +01:00
GustavoLCR
cffe939dae Fix #12431 - Add X86_32 Control/Debug registers assembly ##assembler 2019-01-09 18:29:26 +01:00
Simon Shi
0fdcc3716a Fix ARM64 assemble for "b ." ("b 0x0") ##assembly 2019-01-09 10:56:12 +01:00