Commit Graph

1794 Commits

Author SHA1 Message Date
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
tanjmaxalb
cd35e40c01 Was be fixed #10303 problem with SIB part at which base part is incorrectly defined
for form as [reg * 2 + disp]
2018-06-10 20:50:26 +02:00
pancake
78319e77b3 Honor dir.prefix in asm.opcodes 2018-06-05 16:01:23 +02:00
pancake
0e27ce8a05 Fix warning for xtensa 2018-05-30 15:48:41 +02:00
Paul I
cad927a591 Meson: add rule for tags.r2 (#10215) 2018-05-28 23:25:48 +02:00
courk
e8aababb86 Add support for PIC Midrange & Enhanced Midrange (#10199)
* Add support for PIC Midrange & Enhanced Midrange

ESIL support isn't perfect yet: memory mapped registers support is
still missing.

* Fix syntax error in libr/anal/meson.build
2018-05-28 16:20:21 +02:00
Paolo Monti
26b1610b10 Rewrite of assembler logic for mov indirect, added many tests (#10177)
* Rewrite of assembler logic for mov indirect, added many tests
* Keeping stuff split for now, untill all instructions are fixed
2018-05-24 12:20:22 +02:00
Paolo Monti
3f0bac9723 Fixed parser ambiguity between RIP and R8 (#10168) 2018-05-24 00:11:11 +02:00
Paolo Monti
36a3fa526a Fixed the parsing of the operand sign (#10166) 2018-05-23 11:14:30 +02:00
Paolo Monti
65076bf596 Fixed operand struct (#10147)
* Fixed operand struct

* Fixed legacy code for test

* Forgot debug prints

* Fixed the other legacy code for test

* Fixed code for out instruction

* Fixed mov with rip source addressing
2018-05-22 09:41:35 +02:00
pancake
91a2e5fb9d More killing of strcasecmp/strncasecmp 2018-05-21 22:13:07 +02:00
pancake
be89180e7b Cleaning up asn1 apis, standarize IS_* apis and some more cleanup 2018-05-21 22:13:07 +02:00
Paul I
10a7f61f3f Fix meson build for linux (#10110) 2018-05-17 08:38:58 +02:00
Paul I
7e9f982849 Meson: some cleanup (#10076) 2018-05-16 10:24:35 +02:00
pancake
93551610b8 Fixes for the ios-sdk build 2018-05-16 10:16:56 +02:00
pancake
e90fd02b97 Upgrade capstone to fix m68k bugs
Revert "Fix #9855 - Enlarge tmpbuf to 128 bytes because capstone code is crap"
- 11f99872f5.
Revert "Fix #9852 - Workaround to avoid capstone-m68k crash"
- 0607b97b01.
2018-05-11 12:51:36 +02:00
pancake
32605a8d91 Fix #10060 - Add ?e? help and Implement '?ep' to print PIE charts 2018-05-10 13:13:08 +02:00
radare
9e08da0fa6
Improve build of libr.a and libr.dylib, fix and improve sys/ios-sdk.sh (#10046)
- Update spp and force hidden visibility
- Use R_API wisely
- RSys.prefix returns const things
- Use -install_name on Apple
- Fix merged lib visibility linking on Linux
- Use OSTYPE instead of BUILD_OS
- Honor crosscompiler-objcopy and support android like linux
- Add extra missing archives
- Fix for android
- Upgrade spp and sdb
- Skip libr. from symstall
- Add --enable-merged configure option
- Use --enable-merged on ios-sdk
- Upgrade sdb again for js0n
- Kill sys/ios-shell.sh
- Msvc dynamic build fix
2018-05-09 23:31:52 +02:00
Paolo Monti
004031aaeb Fixed the assembling of some invalid instructions (#10049) 2018-05-08 16:46:26 +02:00
Silur
8a781abc51 add extra check for extended reg+mem operand case (#10028) 2018-05-06 20:39:26 +02:00
pancake
11f99872f5 Fix #9855 - Enlarge tmpbuf to 128 bytes because capstone code is crap 2018-05-06 16:17:25 +02:00
pancake
cc60042ef4 Another capstone-m68k workaround to make r2 happy 2018-05-06 16:10:43 +02:00
pancake
bd276ef2fd Fix #9969 - Stack overflow in wasm disassembler 2018-05-06 15:26:26 +02:00
Paul I
5180e0220f Add R2_PLUGINS, R2_EXTRAS, R2_BINDINGS macros (#9994) 2018-05-02 15:58:14 +02:00
Silur
a2fbe0ed2d xadd for x86.nz (regs only) (#9978)
* xadd for x86.nz (regs only)

* minor syntax fixes
2018-04-30 17:55:11 +02:00
RagingCactus
dd4761f792 Fix analyzed opcode size for some z80 instructions (#9984)
This bug affected instructions starting with:
  * 0xED (extended instructions)
  * 0xDD (instructions operating on IX register)
  * 0xFD (instructions operating on IY register)
2018-04-29 22:19:55 +02:00
Paul I
cc90ec6be5 [WIP] Move hardcoded paths to r_userconf.h (#9959)
* Move hardcoded paths to r_userconf.h

* Add R2_HOME_* macros

* Some cleanup
2018-04-28 10:02:55 +02:00
pancake
227dec4cc7 Fix last covs in armass 2018-04-24 12:07:16 +02:00
radare
62978bbf6e
Full thumb2 assembler support 2018-04-21 11:33:55 +02:00
radare
a0348bb1b5
Fix #9915 - crash in r_hex_bin2str from asm.c (#9922) 2018-04-18 13:23:03 +02:00
pancake
1adac87918 Update sdb-1.1.0, update calls to sdb_fmt() 2018-04-10 23:52:47 +02:00
Paul I
40b4a5b557 Meson: disable libversion info for Windows (#9858) 2018-04-10 22:44:54 +02:00
pancake
245617e952 Add some more instruction descriptions for PPC 2018-04-10 12:55:42 +02:00