22950 Commits

Author SHA1 Message Date
GustavoLCR
11859ab63b Use RTable for Windows heap info output (#15368) ##debug 2019-10-28 02:11:48 +01:00
Armin Weihbold
b9874fb102 Add support for setting xmm registers on linux (#15365) ##debug 2019-10-27 17:38:36 +01:00
yossizap
b133761f3b Fixed continue not being associated with the current thread in unix ##debug 2019-10-26 11:02:23 +02:00
yossizap
74c54e24bb Added a way to break while in dbg_wait (continue, step etc) ##debug 2019-10-26 11:02:23 +02:00
yossizap
797803473b Fixed dpk ##debug 2019-10-26 11:02:23 +02:00
Riccardo Schirone
d5bf57258a On AArch64 there is a new special symbol $x (#15362) ##bin 2019-10-25 20:56:30 +02:00
pancake
7ac7570ef8 Minor code cleanup 2019-10-25 20:20:37 +02:00
pancake
a019caadcc Add the r_anal_fcn_rename() function 2019-10-25 19:49:53 +02:00
yossizap
82b02e8b89 Fixed opcodes not being associated with the current thread in gdbr (#15358) ##debug 2019-10-25 19:41:34 +02:00
Armin Weihbold
5742c3498c Fix xmm register offsets (#15360) 2019-10-25 19:41:18 +02:00
radare
89a98f7e1c
Fix #14489 - Do not print newline in k commands (#15361) 2019-10-25 19:40:43 +02:00
Qian
1f85f733f8 Simplify ESIL code for ARM str instructions ##esil
* Fixes post-indexed str (w/ register offset)
2019-10-25 18:15:19 +02:00
GustavoLCR
281c4df09d Select default var type based on its size (#15352) ##anal 2019-10-25 17:14:57 +02:00
Khairul Azhar Kasmiran
513fd79f53 Refactor out code into ds_begin_cont() (#15350) 2019-10-25 17:13:16 +02:00
Armin Weihbold
fbd68eb1ce Fix drm[bwdq] command, add xmm0h/l and xmm8-15 registers (#15354) ##debug 2019-10-25 17:12:34 +02:00
Florian Märkl
281dd5b794
Update SDB URLs (#15357) 2019-10-25 15:58:29 +02:00
Florian Märkl
03ef6b4e06 Update SDB for sdb_copy() (#15356) 2019-10-25 15:30:43 +02:00
Stefan Ilic
232256d429 Fix leak in cbin.c (#15351) 2019-10-24 18:25:34 +02:00
pancake
799a9e3ee7 Implement radiff2 -X for hexII diffing ##diff 2019-10-24 18:23:03 +02:00
Riccardo Schirone
7594b0f5e6 A bit of refactoring in RBin (#15349)
* introduce r_bin_open_buf
* fix r_bin_file_delete to use bf->id and not fd. This was used
  inconsistently and the function was just wrong.
* rewrite r_bin_reload to just reuse the existing bf->buf
* fix some memory leaks
2019-10-24 14:33:54 +02:00
David CARLIER
ce14b35ca5 Few compiler watning fixes here and there ##core (#15348) 2019-10-24 14:32:24 +02:00
Riccardo Schirone
05df48a96c r_8051_disas should not be exported (#15347) 2019-10-24 13:14:05 +02:00
radare
dd3ad6d660
Fix #15325 - Improve af- like its done in Vdu ##anal (#15344) 2019-10-24 02:22:07 +02:00
radare
583687dcd9
Fix function key handling in visual/panels ##cons (#15345) 2019-10-24 02:21:20 +02:00
GustavoLCR
92bbe968b2 Kill r_sys_get_osinfo () (#15346) 2019-10-24 02:20:57 +02:00
Riccardo Schirone
7cd93eef9b Fix the way linux debugging options are set (#15323) ##debug
In linux_attach_single_pid there is a check to avoid calling PT_ATTACH
multiple times on an already traced pid, which is an operation that
should be done only one time. The old code supposedly tried to set the
options only the first time you attach to a process, however when
debugging a process through the io_ptrace plugin, the process uses
TRACEME and the code never set the options of ptrace to intercept the
process before dying, amongst other things.

This patch addresses this issue by just always setting ptrace options.
Those options could be changed by the user during the life of the debug
session, so it's not an operation that should be done only one time.
2019-10-24 01:47:37 +02:00
radare
065207357d
Deprecate anal.jmp.eob /refs #13482 ##anal (#15340) 2019-10-23 19:28:06 +02:00
radare
70752807a4
Refactor asf/ask code (#15342) 2019-10-23 18:07:54 +02:00
radare
380daa6960
op.type must be ut32 NOT an enum. its a bitmask (#15343) 2019-10-23 18:07:27 +02:00
radare
875d377292
Fix #15117 - honor asm.var.sub in ao/aoj ##anal 2019-10-23 18:06:22 +02:00
pancake
a3a0a13e79 Fix #8575 - Support stdin slurping in rafind2 - ##search 2019-10-23 16:36:31 +02:00
Florian Märkl
aad2a2c79e Link sdb fully into r_util in meson (#15338) ##build 2019-10-23 15:52:19 +02:00
radare
528edceaea
Fix #15315 - Honor RAnalOp.disp in aar and ao ##anal 2019-10-23 15:49:54 +02:00
pancake
baed5ebec2 Fix #14857 - Handle 'O' key to rotate asm.pseudo/asm.esil ##panels 2019-10-23 14:09:52 +02:00
pancake
339717feec Fix #15114 - Implement r_sys_info() and uname ##core 2019-10-23 13:23:11 +02:00
pancake
583162c3e9 Fix warnings and indentation in anal.gb 2019-10-23 12:54:35 +02:00
pancake
28c4d4ead4 Implement 'str' operation in RTable queries ##†able 2019-10-23 12:49:26 +02:00
pancake
c166490a2e Fix #15333 - Table filter segfault via ii name/cols 2019-10-23 12:40:59 +02:00
pancake
76bc3b0282 Fix macOS build 2019-10-23 12:15:21 +02:00
Florian Märkl
a30c1f62a0 Update SDB after diff update (#15334) 2019-10-23 12:05:34 +02:00
Stefan Ilic
85b291e535 Fix leaks in panels.c (#15329) 2019-10-23 00:05:08 +02:00
Riccardo Schirone
3afba69a5b r_reg_get_pack/r_reg_set_pack are not able to deal with 128 packbits ##debug 2019-10-22 23:09:35 +02:00
hmht
3a0a477867 Update 8051 plugin (#15321) ##anal
* handle 8051 ANAL_OP DISASM

The 8051 assembler has been R_APId, #included in the local scope, and
called to fill op->mnemonic, which stops a bunch of warnings from
appearing whenever a bunch of disassembly appears on the screen.

The disassembler is called because of comments in r_anal.h: op->mnemonic
should contain the entire disassembly, not just the mnemonic.
Here's hoping the mnemonics and arguments will get split eventually.

* typdef some RAnal enums

In trying to make my analysis push out more info, it's difficult to
understand what all these ints mean, while ACTUALLY they should be
filled with enum values. By using the enum names, that's made clear
immediately.

r2's style is typedef over `enum name`, so that's what I did.

the typedef-instead-of-int I added here isn't consistently propagated,
and has caused warnings about unhandled cases-in-switch, at least some
of which should just get a default: case added, but I'd rather leave it
to the domain experts, or my future self when I become that domain
expert.

* refactor 8051 optype switch into table

it's pretty much static data with very meagre duplication, putting it in
a switch-case is unwieldy.

* add cycle info to 8051 opcode analysis

* add more basic 8051 anal info

op->cond, eob, nopcode, family, id

they seem mostly useless, but it's not much work to add, so...

* use ANAL_OP_MASK_VAL

* fixup! handle 8051 ANAL_OP DISASM

* fixup! use ANAL_OP_MASK_VAL

* Revert "use ANAL_OP_MASK_VAL"

:)

Clearly I was using MASK_VAL incorrectly, the only hint to its use was:

> // It fills RAnalop->dst/src info

so even though it's named "VAL", it might not actually need
to fill RAnalop->val...

Nor ptr, and definitely not jump and fail, which means we don't have use
for it yet! Not until I actually implement ->dst/src
2019-10-22 23:07:29 +02:00
Khairul Azhar Kasmiran
184a67abac For utf-8 locale, check LC_ALL, LC_CTYPE and LANG in sequence instead (#15326) ##cons 2019-10-22 19:21:20 +02:00
Riccardo Schirone
dd871daf96 Fix a couple of ASAN issues (#15324)
* Fix out-of-bound read when searching for the last part of buf
* Fix out-of-bound read in case the input does not contain anything else
2019-10-22 10:52:29 +02:00
pancake
44b7de0a13 Try to disable utf8 on mac/travis 2019-10-21 00:30:55 +02:00
pancake
74958b8e88 Fix oobread in strlen with clusterfuzz-testcase-minimized-ia_fuzz-5767342952284160.dms 2019-10-21 00:25:53 +02:00
Paweł Łukasik
d62ae602a4 Fix #15152 - Support old Java attribute format (#15317) ##bin 2019-10-20 23:44:15 +02:00
Qian
dc39e93be3 Fix post-indexed memory access for str instructions on ARM (#15298) ##asm 2019-10-20 23:41:56 +02:00
Stefan Ilic
3f41b744c6 Fix leak in lib.c (#15319) 2019-10-20 23:37:10 +02:00