Commit Graph

1826 Commits

Author SHA1 Message Date
pancake
d60f94fa58 Add missing r_asm_op_get_buf 2018-08-28 14:12:20 +02:00
Fangrui Song
e2df259a8e Fix some warnings (#11271) 2018-08-27 09:16:29 +02:00
pancake
6b31a30ce6 Implement support to encode 'dex [16bitreg]' in x86.nz 2018-08-25 13:58:40 +02:00
radare
44627091d3
Fix memleaks in radare2.c (#11221) 2018-08-24 00:20:08 +02:00
David CARLIER
7291666948 Fix #11184 attempt. (#11216) 2018-08-23 14:43:35 +02:00
Neven Sajko
2f40ff93ce msp430 disassembly: clean up and bug fix (#11202)
General cleanup of opcode selection and invalid opcode handling. Also
fixes the bug of two-operand instructions being decoded as six-bytes
long instead of four bytes long (#11000). Also fixes some out of bounds
reads.

Fixes #11000
2018-08-23 13:05:41 +02:00
pancake
33a01a57f4 Address review comments from MaskRay, ret2libc and xvilka 2018-08-22 11:43:05 +02:00
rene
045dae8406 Fixes pdi, hellocxx test, cmd_rop, helloworld-gcc-elf, elf-riscv64 2018-08-22 11:43:05 +02:00
pancake
6d05365f30 Make RAsmOp use RStrBuf instead of fixed-size buffers
* Seems to work, but there are many things to improve and fix
* Fixed some bugs (overflow, sandbox bypass, ..)
* Exposes some memleaks and bad api usages.
* Refactor all the things! \o/
* Fix z80, tms320 disasm and x86.as
* Care about memleaks
* Support meson
* And fix more tests related to pda and pdj and m68k
2018-08-22 11:43:05 +02:00
radare
bc70bc25eb
Initialize RAsmOp and update acode->bin after hex (#11178) 2018-08-22 03:28:44 +02:00
Fangrui Song
b6acfabd3c propeller: fix -Winitializer-overrides (#11159) 2018-08-20 14:50:07 +08:00
Fangrui Song
e46cb2141d Fix out-of-bounds write (#11128) 2018-08-18 11:58:30 +02:00
radare
586bf7fc15
ragg2 *.c shows stderr and fix clang cflags (-Os makes non-pic code 🤦) (#11122) 2018-08-18 03:41:24 +02:00
Khairul Azhar Kasmiran
d48e036357 Fix #10987 - Drop bracket requirement for LEA if constant operand (#11050) 2018-08-12 12:37:43 +02:00
pancake
6c2d4ecc8e Fix #11021 - Fail when trying to use invalid register with XOR on x86 2018-08-12 00:27:24 +02:00
radare
2487fa20a4
Unify /A into /a and move ?O into aom (#11019)
* Many fixes related to the argument parsing and help messages
2018-08-11 16:39:18 +02:00
radare
e434a5938b
Fix so command on ARM64 (honor mininstrsize and fix so-X where X > 1) (#11006) 2018-08-10 11:41:47 +02:00
Fangrui Song
beda5da178 meson: disable inclusion-only .c files (#10982) 2018-08-08 09:04:07 +02:00
Fangrui Song
78796146be meson: don't compile inclusion-only .c files (#10952) 2018-08-07 09:17:34 +02:00
radare
c1ab35df32
Fix #10800 - Honor op->prefix in op.mnem and add FAMILY_THREAD for x86 and ARM (#10953) 2018-08-06 10:38:02 +02:00
pancake
f07c02eafe Fix infinite loop in x86.nz with 'mov r12, qword[xmm0]' 2018-08-06 00:51:58 +02:00
Fangrui Song
3aafc2cb28 Move global tmp to function-scope (#10936)
The name is so common that it can interpose or be interposed by other modules.
2018-08-05 11:53:29 +02:00
David Carlier
f4005b888d Change proposal to avoid collision wirth gdb header. 2018-08-04 23:56:02 +02:00
Fangrui Song
ac04e2d965 meson: don't compile files that are not used standalone
They caused a plethora of -Wunused-function warnings.
2018-08-04 18:16:12 +02:00
pancake
c66112c13b Fix oobread in some situations with the xnu debugger 2018-08-03 18:46:32 +02:00
pancake
8b5d02a592 Implement 'b' instruction for the mips assembler 2018-08-03 18:36:26 +02:00
David CARLIER
adaa0bc986 Making asan no ops for OpenBSD (not supported) and few mem leaks fixes (#10842) 2018-07-29 16:43:46 +08:00
Paul I
b50080b363 Meson: remove build_always for custom_targets (#10798) 2018-07-23 19:39:58 +02:00
pancake
3dec146798 This 0b... is not valid C 2018-07-19 18:13:10 +02:00
Iru Cai (vimacs)
51a5394372 asm_x86_nz: fix "out dx, *" (#10769) 2018-07-18 11:45:53 -04:00
pancake
f98d5c8593 Fix the msp430 disassembler asan regression 2018-07-18 11:54:52 +02:00
pancake
7d61845ceb Fix asan crashes in the msp430 plugin 2018-07-18 02:39:27 +02:00
Riccardo Schirone
927bfbae73
asm_x86_nz: fix pancake (#10761) 2018-07-17 17:17:11 +02:00
pancake
fdcf5bc9b2 Fix infinite loop in 'mov rax, qword[xmm0]' 2018-07-17 14:52:28 +02:00
cyanpencil
9639afa6dc Use r_str_get to prevent passing null to %s 2018-07-17 00:59:16 +02:00
cyanpencil
ebc9cf809d Fix 1394098 resource leak in asm.c 2018-07-17 00:59:16 +02:00
Riccardo Schirone
02f9ddefd1
plugins on meson build (#10716)
* asm: use path macros whenever possible
* meson.build: sync asm and bin plugins with Makefile
* shlr/meson.build: apply capstone patches
2018-07-13 18:19:56 +02:00
Giovanni
b12837b52a fixed bad spaces on mem (#10575) 2018-07-11 01:27:28 +02:00
radare
b697ef0b3a
Implement esil bang syntax proposal, and also another str api cleanup 2018-07-10 20:26:33 +02:00
Riccardo Schirone
7572f315ea
meson improvements (#10617)
* meson.build: fix meson build when not on git
* meson.build: make capstone a dependency
* meson.build: make r_magic library optional
* meson.build: capstone include is already in the dependency
* meson.build: use dependencies instead of manual linking + includes
* meson.build: add travis
* flag/meson.build: include sdb dependency
* travis-script: print messages based on install system
* io/meson.build: add sdb as dependency
* syscall/meson.build: missing sdb dependency
* {parse,config}/meson.build: add sdb dependency
* travis.yml: pass INSTALL_SYSTEM var to docker
* {bin/shlr}/meson.build: add sdb_dep to r2java and bin
* install meson and ninja-build in r2-travis docker
* travis.yml: allow meson build to fail for now
* anal/meson.build: add sdb and java dependencies
* egg/meson.build: add sdb dependency
* travis.yml: meson build env should be also in the includes list
* core/meson.build: add java dep
* meson.build: use dependencies also to create main r2 dependency
* rasm2/meson.build: replace link_with with dependencies
* rasm2/meson.build: add sdb as dependency
* meson.builds: convert link_with to dependencies and fix tabs
* travis-script: change meson install prefix and set PKG_CONFIG_PATH
* travis-script: add lib64 to LD_LIBRARY_PATH
2018-07-09 16:58:38 +02:00
Vanellope
2c3f666e99 Fixing armass covs (#10655) 2018-07-08 15:20:44 +02:00
d3vvil
ff07dcc5d3 Update armass.c (#10653) 2018-07-07 21:50:40 +02:00
pancake
4b3b4d8059 Fix #10467 - oobread crash in anal.z80 2018-06-25 10:25:25 +02:00
radare
e84cf425bc
Fix #10432 - Analyzing wasm is too slow (#10477) 2018-06-24 23:53:10 +02:00
pancake
f2842b8477 Add v850 asm.describe strings (copypasta from v810) 2018-06-20 14:18:58 +02:00
pancake
129c0a6dcc Show absolute address in relative branch disassembly for v850 2018-06-20 12:00:43 +02:00
Tanjmaxalb
673e0b3f2b Was be fixed #10346 (#10347) 2018-06-14 15:59:13 +02:00
pancake
06b93969b0 Fix some more oobreads in v850 2018-06-13 15:43:44 +02:00
pancake
89874a07d1 Fix crash in v850 disassembler, need some more fixes to fix them all 2018-06-13 14:51:01 +02:00
pancake
c488aaa208 Fix #10295 - Heap out of bounds read in v850 2018-06-11 03:12:19 +02:00