Commit Graph

412 Commits

Author SHA1 Message Date
Florian Märkl
d76bc232a2 Support struct/enum/union before name in ctypes parse 2019-07-26 01:33:11 +02:00
Florian Märkl
24d3a9cb5d Add r_parse_ctype ##parse (#14596)
* Add r_parse_ctype

* Add mpc to acr

* Readability

* Fix r_parse for acr
2019-07-20 12:50:27 +02:00
pancake
9778da3b7b Fix arm64 parse for BL instructions ##disasm 2019-06-20 20:14:27 +02:00
Anton Kochkov
20e19d6023 More spelling fixes in the code 2019-06-20 13:36:02 +08:00
Martin Brunner
af95ca437d fix, improve and add some sh pseudo ##disasm
* I recommend reading SH operands right-to-left
* tst is checking for zero (!)
2019-06-19 17:26:17 +02:00
radare
4dbe1453f5
Initial cleanup in RParse, delete mreplace plugin ##disasm
* Also voidify and boolify anal, parse, cons, bin, ..
2019-06-17 02:23:58 +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
radare
d7d104ac4b
Fix asm.varsub in a hacky way to fix the disasm output ##disasm 2019-06-06 17:01:57 -04:00
radare
1ab587c971
Improvements in dalvik analysis ##anal 2019-05-25 23:31:06 +02:00
pancake
0e87b15388 Add opcode mask field in ao and aoj ##anal 2019-05-21 17:05:58 +02:00
radare
d73483ae0d
Improve anal and parse plugins for Thumb ##anal (#14120) 2019-05-21 09:52:11 +02:00
Óscar Carrasco
31e7cf517a Fix includes from to ignoring dir.types ##types 2019-05-15 08:46:43 +02:00
pancake
90fd81ca81 Fix warnings here and there 2019-05-14 10:44:19 +02:00
David CARLIER
44f9806763 Couple of mem leak fixes proposals. (#14038) 2019-05-12 10:24:15 +02:00
pancake
04af34ca8b Initial work on refactoring RParse 2019-04-25 17:01:20 +02:00
pancake
c7b02c8293 Improve the graphviz output for traced bbs ##graph 2019-04-25 17:01:20 +02:00
radare
5ecd4c352b
Demangle relocs and add asm.flags.{inline|limit|maxname} ##disasm
* Fix code injection issue in ir* and is*
2019-04-24 02:16:54 +02:00
pancake
9f574c758f Add some more x86 instructions for pseudo ##disasm 2019-04-21 12:09:44 +02:00
Florian Märkl
f5dfae611f
Remove RParse.hint to fix Segfaults ##parse (#13806) 2019-04-18 15:09:48 +02:00
Maijin
f24ced4aa5 Fix mulss pseudo (#13470) 2019-03-23 03:50:27 +01:00
Vasilij Schneidermann
9856bfab28 Chip8 pseudo fixes (#13453) 2019-03-22 00:40:53 +01:00
Vasilij Schneidermann
c5d09f32e8 Add chip8 pseudo support ##disasm 2019-03-16 20:48:27 +01:00
radare
0a6ff520cb
Fix #13326 - Implement of asm.regsub to replace register names with their role alias ##disasm (#13330) 2019-03-09 10:21:04 +01:00
Lowly Worm
30264306a0 Make function to allow grabbing the flags by order of importance in flagspace ##core
* use relsub addr
* kill i2, grab top of list when not in preferred spaces
* Add r_core_flag_get_by_spaces
* Remove r_flag_get_i2 and use r_core_flag_get_by_spaces
* Fix fcn name from flag
* Better consistency: flag_get instead of get_flag
* Quickpath for just one flag
2019-03-05 23:43:49 +01:00
sivaramaaa
c55d8e4b9c Fix MIPS asm parser to display vars in disasm ##disasm 2019-02-17 05:21:08 +01:00
radare
d9197f6115
Fix #11585 - Missing main/entry substitutions ##disasm 2019-02-14 00:19:00 +01:00
Gaurav Kumar Ghildiyal
e60749ed12 Added feature to return error while parsing c header file (#13030)
* Added feature to return error while parsing c header file

* Fixed cmd_type.c to pass tests
2019-02-10 01:56:28 +01:00
Khairul Kasmiran
1e65206273 Remove some r_parse spaces 2019-02-08 00:01:02 +08:00
Khairul Azhar Kasmiran
e9acf36c4f t-* resets tcc's anonymous symbol counter (#13015) 2019-02-07 16:04:59 +01:00
Riccardo Schirone
e5b4d9294c Use RSpaces in RFlag ##refactor 2019-02-03 09:06:45 -06:00
pancake
709ffb60b6 Fixes for the android build and related warnings 2019-01-21 12:10:33 +01:00
Pepe Vila
015e7734a7 Fix Wasm function rename to ignore memory and other non-function symbols (#12832) 2019-01-18 16:30:09 +01:00
Giovanni
5f931603de WebAssembly improvements in branch lines and namings ##wasm 2019-01-18 11:29:51 +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
Jessica Creighton
d7571566a2 Have arm pseudo's replace() use the same replacement style as x86's ##disasm
* Fix `movt r0, 0x1234` from incorrectly showing up as `r0 = 0x1234 << r0`
2019-01-09 22:15:20 +01:00
pancake
b29f5bb54a Fix some issues reported by clang-analyzer 2018-12-31 05:36:14 +01:00
lzutao
9cc6d2d291 meson: Do not use glob with meson ##build
* meson: Explicit is better than implicit
* meson: Fix deprecated warnings in Meson 0.49.0
* meson: Do not need separate array for installed files

libr/socket/meson.build:30: DEPRECATION: Library r_socket was passed to
the "libraries" keyword argument of a previous call to generate() method
instead of first positional argument. Adding r_socket to "Requires" field,
but this is a deprecated behaviour that will change in a future version
of Meson. Please report the issue if this warning cannot be avoided in
your case.
2018-12-27 14:17:54 +01:00
radare
0ca4d00251
Implement support for nword in ahi ##anal (#12494)
- ahi0 == ahi
- any digit from 0 to 9 is valid
- test case:

	$ r2 -qcq - << EOF
	wx c7458843c6ff00
	pd 1
	ahi 10
	pd 1
	ahi-
	ahi1 10
	pd 1
	EOF

	mov dword [rbp - 0x78], 0xffc643
	mov dword [rbp - 120], 0xffc643
	mov dword [rbp - 0x78], 16762435

* Fix behaviour in ahi nword and assume nword is 0 by default
* Add VdI
2018-12-17 12:56:07 +01:00
radare
d05292e485
Fix 80 warnings coming from gcc8.2 (#12280) 2018-11-22 22:11:43 +01:00
Luca Di Bartolomeo
826d584405 Fix #11889 - Fix varsub when some ansi escape sequences are involved ##disasm
- findNextNumber to parse bold ascii escapes
2018-11-21 22:35:48 +01:00
lzutao
b790439e28 Cast arguments to ut8 when feeding ctype.h functions ##refactor
The behavior of the `<ctype.h>` functions is undefined for negative
arguments (other than `EOF`). In such a situation, the argument should
be cast to `unsiged char` for safety.

References:
 - C Programming: A Modern Approach, 2nd Edition: page 612, chapter 23.5
2018-11-06 13:40:00 +01:00
sivaramaaa
bc4b5933d2 Improve array indexing in disassembly ##anal 2018-11-02 18:27:45 +01:00
Riccardo Schirone
d6aab51c2b WIP: gcc8 warnings (#11795)
* arch/ebc: fix style and remove gcc8 warnings
* parse/parse_ppc_pseudo: fix gcc8 warnings
* parse/parse_mips_pseudo: fix gcc8 warnings
* anal/esil: fix strncat usage
* shlr/tcc: fix snprintf usage
* parse/parse_dalvik_pseudo: fix sprintf -> snprintf
* lang/vala: fix gcc8 warnings
* core/vmenus: fix snprintf usage
2018-10-12 12:17:29 +02:00
Khairul Azhar Kasmiran
c7a9ab9d74 Fix arm relsub when both pointer addr and pointed-to addr have flags (#11780)
* Fix arm relsub when both pointer addr and pointed-to addr have flags
* Add comment stating extra implication
* Print flag if exists, otherwise address but not both
2018-10-11 01:17:48 +08:00
radare
f7be81edbb
Fix instruments leaks (#11695)
* Fix a small memleak in the disasm reflines
* Fix huge args leaks in r_parse for arm
* Fix another memleak
* Fix memleak in VR
* Fix memleak related to bad use of r_list_join
* Fix warnings
* Fix two rlist related asserts
2018-10-01 19:57:33 +02:00
radare
47297f6d0a
Initial implementatil of asm.tailsub (#11696) 2018-09-30 11:41:19 -04:00
dogtopus
d3b5b59b05 Parse add instruction in mips.pseudo (#11689) 2018-09-28 18:24:34 -07:00
Paul I
bf29250ddd Fix #11487 (#11534) 2018-09-15 22:52:12 +02:00
fcasal
0ad81b1a7f Detect golang by looking at golang sections. (#11520) 2018-09-14 14:54:00 +02:00