2141 Commits

Author SHA1 Message Date
Paul I
2556919857 Add clang-cl support (#14814) 2019-08-16 12:10:00 +08:00
pancake
fd50193999 Improve ARM64 PAC instructions support ##anal
- Support for aap (function preludes with pacibsp)
- Handle LDURSW properly
- Define op->type for PAC instructions (not just family)
- Add more asm descriptions for pac instructions
2019-07-22 02:06:34 +02:00
pancake
08f094d952 Oops 2019-07-19 14:23:57 +02:00
pancake
ff8be7f5f1 Implement PAC instructions in the ARM64 assembler ##asm 2019-07-19 14:14:44 +02:00
blenk92
30f12f0183 Fix wrong assembly of jumps relative to the ESP register (#14511) 2019-07-08 10:28:17 +02:00
pancake
e20ab4bcf0 Fix trailing space issue in the GNU sh disassembler 2019-07-07 02:27:33 +02:00
Max
3acb7d3d1a Fix wrong realloc in r_asm_massemble
In line 694 a buffer of size (sizeof(char*)*32) is allocated. Later on,
this buffer is realloced to 64. This decreases the size of the allocated
buffer instead of increase. This may lead to memory corruption.
2019-07-06 01:38:07 +02:00
Martin Brunner
4eecc7ac35 Add some SuperH opcode descriptions ##disasm
Notes:
* SH opcodes array, file libr/asm/arch/sh/gnu/sh-dis.c from GNU binutils, defines "bf.s" and "bf/s", same with "bt.s" and "bt/s".
* Both pairs are identical, e.g. bt.s and bt/s mean the same thing.
* As *.s variants come first in the table, radare and binutils-objdump print bf.s and bt.s names.
* Still true for latest binutils (v2.32 2019-02-02).
* Renesas chip hardware manuals and IDA Pro only use bf/s and bt/s.
2019-06-24 18:50:07 +02:00
pancake
01d40a7e0f Avoid printing nulls on invalid code or missing bin info for Dalvik ##disasm 2019-06-23 02:55:50 +02:00
Anton Kochkov
d3909cab84 Fix more grammar 2019-06-18 14:51:30 +08:00
MatejKastak
97607eeac3 Arm64: Handling of XZR registers in assembler (#14343) 2019-06-17 19:13:57 +02:00
radare
a49bb7cf66
Change the signature of r_str_trim to avoid confusions ##refactor 2019-06-16 20:58:40 +02:00
GustavoLCR
1ad0fc72dd Trim before comparing pseudo asm (#14313) 2019-06-16 18:37:42 +02:00
radare
b282620b7a
Fix #14303 - oob crash in RParse api usage, needs API redesign (#14307) 2019-06-15 13:24:00 +02:00
radare
571a080ca7
s/CORELIB/R2_PLUGIN_INCORE/g (#14295) 2019-06-13 19:12:51 +02:00
pancake
9ad57021d9 Fix #14233 - Fix 1byte oobread in wasm analysis 2019-06-07 14:30:18 +02:00
pancake
84564f54da Fix build and add snprintf_chk function signature 2019-06-07 04:20:56 +02:00
pancake
db972efc89 Fix #14228 - oob-read by one in wasm disasm/analysis 2019-06-05 19:30:23 -04:00
pancake
1ffb1b1999 Fix /r for dalvik and enable VA ##search 2019-05-28 03:25:06 +02:00
pancake
1779434c28 Implement esil for OR and MUL dalvik instructions ##anal 2019-05-28 03:25:06 +02:00
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