11204 Commits

Author SHA1 Message Date
pancake
02161f0bb8 Add r2 -qv and update manpage 2016-05-15 23:19:06 +02:00
pancake
1ea99fd31c Update to acr 0.10.2 and show HOST BUILD TARGET in REPORT 2016-05-15 23:02:59 +02:00
Anton Kochkov
fda6f74215 Update Yara doc and remove old script 2016-05-15 23:34:40 +03:00
Anton Kochkov
33fd28192f Fix Yara installation with r2pm 2016-05-15 22:57:47 +03:00
pancake
df6640c188 Update CONTRIBUTING.md 2016-05-15 11:07:30 +02:00
pancake
80ea7427bb Indentation fixes around the previous commit and beyond 2016-05-15 10:40:57 +02:00
Joshua J. Drake
29c2670039 Fix #4560: Handle recoils well with swstep=true
When resuming after (during) recoil from a breakpoint, the swstep
implementation would fail to advance. In short, the debugger would immediately
interrupt again because r_bp_restore was re-setting the original breakpoint
just before continue. The following changes fix this issue:

1. Modify r_bp_get_in to stop including the byte after a breakpoint. This was
causing r_bp_recoil to fail because it thought there was already a breakpoint
on the next instruction.

2. Pass the real breakpoint address (pc - dbg->bpsize) to r_bp_recoil so
that r_bp_get_in can work properly. Stop adding the b->size there to keep it
going too.

3. Add a state flag to core->dbg to track that we are in the midst of a recoil.

4. When continuing from recoil (in r_debug_continue_kill), restore all
breakpoints except the one we just hit (with the new r_bp_restore_except) to
avoid hitting it again. Once we move past this instruction, that breakpoint
will be set again.
2016-05-15 10:19:24 +02:00
pancake
23dcb486ea Fix some minor memory leaks, Properly make check_fcn public 2016-05-15 02:43:10 +02:00
pancake
942e3e0da5 Fix #4862 - Fix all pending covs 2016-05-15 02:04:40 +02:00
pancake
65ffbb12ce Fix wwwroot for android 2016-05-14 16:27:58 +02:00
pancake
83c3f5cd3f Add v alias for V 2016-05-14 16:42:41 +02:00
Riccardo Schirone
c169073c74 Fix #4080 : remove assumption that functions are contiguous
* anal/p/anal_java: remove function that does nothing

* anal/fcn: workaround for java analysis
2016-05-14 16:37:24 +02:00
Ahmed Mohamed Abd El-MAwgood
7ab187841f Add initial support for asm.calls 2016-05-14 11:04:07 +02:00
pancake
22989f1ce9 Workaround for x86.nz inc [eax] 2016-05-14 10:59:54 +02:00
pancake
02eb896897 Handle data refs in dalvik analysis 2016-05-14 10:40:03 +02:00
Riccardo Schirone
1c7119401a core/graph: improve layer assignment algorithm
It should fix some layer problem on some binaries like ls-linux64 and in
the presence of self-loop. The previous algorithm could assign the same
layer to two nodes that are connected with an edge (and it should never
happen, because they have to be on different layers).

This patch uses the topological sort of a graph to assign the layer.
2016-05-14 10:37:55 +02:00
Damien Zammit
79728e837d Fix #4879 - warnings in esil 2016-05-14 10:33:09 +02:00
Joshua J. Drake
83baa272c8 Try for C99 compatibility per xvkilka's comments 2016-05-14 08:42:56 +03:00
Joshua J. Drake
fad425ec06 Fix perror calls that already pass the function name 2016-05-14 08:42:56 +03:00
Joshua J. Drake
83a76b7158 Propagate location information in perror
The "r_sys_perror" function previously would use "perror" on UNIX resulting in
location information of the "perror" callsite being shown. Renaming
"r_sys_perror" to "r_sys_perror_str" and replacing the original identifier with
a macro ensures that the displayed information is useful.

Further, this addreses a TODO that makes this functionality work on both
Windows and UNIX by moving these macros outside of the UNIX #if. The (now)
"r_sys_perror_str" is already implemented for both platforms. Let's use it!
2016-05-14 08:42:56 +03:00
Álvaro Felipe Melchor
647b4f29b5 Fix #4808 2016-05-13 21:52:28 +02:00
pancake
d898e8e201 Fix segfault in swift demangler 2016-05-13 17:53:31 +02:00
Sven Steinbauer
074b327c1c Fix #3644 : Add SIB addressing support to nz compiler 2016-05-13 11:45:54 +02:00
pancake
f18be0bb99 Fix several pointer arithmetic issues in r_endian.h 2016-05-13 11:45:00 +02:00
Sven Steinbauer
278c868693 Add autocomplete for wxf
Signed-off-by: Riccardo Schirone <sirmy15@gmail.com>
2016-05-13 11:33:16 +02:00
Riccardo Schirone
d9e3a290c1 libr: fix compilation warnings
libr/util/graph: add some comments to the API
2016-05-13 09:57:55 +02:00
rene
695d9a0d04 added shortcuts for every node in graph view
fixes mentioned in the pr
fixed the Vp issue mentioned in the pr
fixes the mentioned parts
changed reallocation size

Signed-off-by: Riccardo Schirone <sirmy15@gmail.com>
2016-05-12 23:49:30 +02:00
Rakholiya Jenish
a13d46b295 fix CID 1355197, 1355198 and 1355199
cleanup

Signed-off-by: Riccardo Schirone <sirmy15@gmail.com>
2016-05-12 23:10:37 +02:00
Hamish Coleman
a876fa504e Arcompact coverity changes
* fixed invalid compare

* Attempt to fix coverity's detection of 'Suspicious implicit sign extension'
2016-05-12 04:32:15 +02:00
Jaime Peñalba
5924510994 ESIL gb fixes
* ESIL gb: fix for loading or adding from sp+offset

* ESIL gb: fix for stores to [hl] not using proper source register
2016-05-12 04:31:09 +02:00
Álvaro Felipe Melchor
56099e9b67 fix issue when checking for oob - coverity scan 2016-05-11 23:14:51 +02:00
Rakholiya Jenish
502870f07b list all encoders/decoders supported by woE/woD and rahash2 -E/-D (fix #4851)
list all encoders/decoders supported by woE/woD and rahash2 -E/-D (fix #4851)
2016-05-11 22:25:54 +02:00
Maijin
6464e44a75 Fix #4834 2016-05-11 20:46:24 +02:00
pancake
8b61811a75 Do not set asm.bits depending on CPSR to give more freedom to the user 2016-05-11 15:38:26 +02:00
SkUaTeR
75ea9cea3c Fix w32 debugger 2016-05-11 13:09:40 +02:00
pancake
3d89f2cc21 Add RAnal.Stack.RESET and handle it for arm64 2016-05-11 12:59:32 +02:00
Sven Steinbauer
45093ffb49 Fix #4751 - Add wxf command 2016-05-11 11:58:26 +02:00
Rene Laemmert
47fd9f7169 Added pushf* and popf* for x86 esil 2016-05-11 11:38:06 +02:00
pancake
9a86edb6b3 Use '0' in visual to seek at the beginning of the function and fix r2 -AAAAA 2016-05-11 04:25:16 +02:00
pancake
0baacfe852 Fix use of aae in aaaa 2016-05-11 04:09:39 +02:00
pancake
242fd0309d Add arm64 support for aae 2016-05-11 04:07:51 +02:00
pancake
1afb3b1e62 Handle SVC in anal.arm64 2016-05-11 03:06:42 +02:00
pancake
35ec317f2f Support shift << and >> in RNumCalc 2016-05-11 00:28:42 +02:00
Sven Steinbauer
5ad7b9e2f2 Expand on error message for unsigned OSX binary
If r2 is unsigned the message the user gets when trying to debug with it
isn't clear as to what the problem is. Add a line to suggest most likely issue and go see the docs to get a cert.
2016-05-10 22:16:14 +02:00
Riccardo Schirone
15c1197636 util/print: use screen_bounds to store the first non visible address 2016-05-10 22:15:24 +02:00
Sven Steinbauer
b276795f1c Add r2 -r ? style output to rax2 2016-05-10 22:13:24 +02:00
Sven Steinbauer
97a8fe9657 Make graphviz config options clearer 2016-05-10 22:12:50 +02:00
Anton Kochkov
e804d5d124 Mention also -R option for rarun2 2016-05-10 18:14:00 +03:00
Maijin
0e801ae6e8 r2 -e dbg.profile=foo.rr2 -d ls 2016-05-10 17:04:53 +02:00
pancake
b4bb247791 Add nop for arm64 assembler 2016-05-10 11:22:13 +02:00