Commit Graph

24889 Commits

Author SHA1 Message Date
GustavoLCR
be95cf339d Refresh graph after detecting changes in function 2020-11-01 02:12:14 +01:00
GustavoLCR
bda2dfc7ae Reanalyze function after a write ##anal
* Add r_anal_update_analysis_range()
* Add r_anal_function_update_analysis()
2020-11-01 02:12:14 +01:00
GustavoLCR
9faa7cb979 Add r_anal_function_delete_unused_vars() 2020-11-01 02:12:14 +01:00
GustavoLCR
bcb4e274fb Add bbhash to detect modifications in functions ##anal
* Add r_anal_block_was_modified()
* Add r_anal_block_update_hash()
* Add r_anal_function_was_modified()
2020-11-01 02:12:14 +01:00
GustavoLCR
0ca7d6c3c1 Add RIO on write event ##io 2020-11-01 02:12:14 +01:00
GustavoLCR
bafc2e2b72 Fix r_anal_block_automerge incorrectly merging blocks ##anal 2020-11-01 02:12:14 +01:00
Aswin C
089d1cdd54
Fix u? and improve uc? ##cons (#17795) 2020-11-01 01:50:09 +01:00
yossizap
ac229c3216
Attach to target pid/tid on remote lldb connect ##debug (#17847) 2020-11-01 01:42:31 +01:00
Khairul Azhar Kasmiran
7e744440a6
Fix build on XCode12 in Github CI (#17879) ##build
* Blindfix the macos build based on the Xcode Wikipedia page
2020-11-01 01:40:26 +01:00
Khairul Azhar Kasmiran
fc16ceebb7
Do not skip blank lines in ~:s..e (#17872) ##cons 2020-11-01 01:17:55 +01:00
Liumeo
d4519ef324
Fix msvc warning c4090 in z80 (#17883) 2020-11-01 01:15:13 +01:00
Liumeo
3aca0298a8
Fix macos warning: overrides prior initialization (#17882) 2020-11-01 01:13:52 +01:00
Anton Kochkov
486b7bee72 Regenerate parser files 2020-10-30 16:47:04 +08:00
Anton Kochkov
aaa02245b5 Update tree-sitter to 0.17.2 2020-10-30 16:47:04 +08:00
pancake
8d0711dcc9
Add division overflow macros in r_types ##util (#17856) 2020-10-30 12:42:32 +08:00
Liumeo
898a29713a
Remove some of the ARM64 warnings (#17875) 2020-10-30 12:18:56 +08:00
Paul I
92501b0082
COFF: add ARMNT and ARM64 support ##bin (#17800) 2020-10-29 13:33:43 +08:00
Liumeo
50f5cca9d0
Fix ARM64 db/anal/x86_32 (#17861) 2020-10-29 12:50:36 +08:00
Paul I
626aada98e
Fix memleak in __anal_fcn_check_bp_use() (#17863)
* Fix memleak in __anal_fcn_check_bp_use()
* Fix indent
2020-10-29 12:50:07 +08:00
pancake
e9916a1914
Fix warnings in RBin.{dmp,elf} (#17865) 2020-10-28 10:21:07 +01:00
Anton Kochkov
0b8eb60ff7
Fix rasm2 tests for PPC and S390 (#17868) 2020-10-28 12:39:28 +08:00
Liumeo
b0ee85edbf
Remove unnecessary macro ##refactor (#17821) 2020-10-28 11:24:47 +08:00
pancake
6db4dcb55a
Initialize variables in r_core_anal_type_match (#17834)
Co-authored-by: pancake <pancake@nopcode.org>
2020-10-28 10:59:01 +08:00
pancake
cb3d90c6de
Fix #17857 - Fix warnings (#17858) 2020-10-27 21:19:25 +01:00
pancake
b0228ca85b
Autocomplete e <tab> ##shell (#17855) 2020-10-27 19:05:57 +01:00
Khairul Azhar Kasmiran
f318c2041f
Go back to previous Visual Studio 2019 image for Windows tests (#17859) 2020-10-28 00:07:15 +08:00
Heersin
df3d7a8e99
Extend usage info about '/*' and '*/' (#17851) 2020-10-27 14:42:08 +01:00
pancake
d54ceac382
Fix unexpected FPU exception in ESIL emulation ##esil (#17815)
* Fix unexpected FPU exception in ESIL emulation ##esil
* More fixes and add test
* Add comment

Co-authored-by: pancake <pancake@nopcode.org>
2020-10-27 11:58:20 +01:00
Hex
6ea0a08ecf
Add cfg.json.* encoding options (#17681) ##json 2020-10-27 11:46:27 +01:00
Khairul Azhar Kasmiran
9c66a31a97
Add 6 minutes to cmd_aae timeout and skip aaa for swift_read fuzz test (#17805)
* Add 6 minutes to the cmd_aae test
* Skip aaa when doing swift_read fuzz test on asan
* Bump linux-meson-gcc-newshell-tests timeout to 60 minutes
2020-10-27 18:19:01 +08:00
pancake
3a14d204ea
Do not show return code message in r2pipe api if it succeds (#17854)
Co-authored-by: pancake <pancake@nopcode.org>
2020-10-27 14:25:37 +08:00
pancake
6009345d63
Fix uninitialized usage of a variable, fix crash in r_str_append (#17830)
In file included from rtr.c:234:0:
rtr_http.c: In function 'r_core_rtr_http_run.isra.1':
rtr_http.c:403:44: warning: 'path' may be used uninitialized in this function [-Wmaybe-uninitialized]
      path = (*index == '/')? strdup (index): r_str_append (path, index);
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Co-authored-by: pancake <pancake@nopcode.org>
2020-10-27 14:24:55 +08:00
Liumeo
e3f3da5a9e
Fix arcc+tcc test for arm64 (#17853) 2020-10-26 21:51:41 +01:00
Liumeo
52ba685f01
Fix travis arm64 db/cmd/cmd_px (#17852) 2020-10-26 18:39:34 +01:00
pancake
f786e73e07
Fix UB in r_core_cmd_init (#17832)
Co-authored-by: pancake <pancake@nopcode.org>
2020-10-26 18:33:25 +08:00
Liumeo
9f4961fdb9
fix travis arm64 db/cmd/cmd_pipe (#17802) 2020-10-26 09:27:35 +01:00
pancake
7313b59a18
Update configure with acr-1.9.4 (adds --quiet) ##build (#17823) 2020-10-26 09:27:17 +01:00
pancake
fe7d2a5c85
Fixes and improvements for the Debian packaging scripts ##build (#17825) 2020-10-26 09:10:30 +01:00
Dennis Goodlett
ceb661ca7a
Refactor r_sign metrics match ##signatures (#17786)
* Refactor r_sign metrics match ##signatures

This reduces the interface for matching function metrics to a single call. Now
each RSignItem is created once for all metric search types. Additionally, other
function data that is expensive to compute is now cached.

* Replace int with size_t

Co-authored-by: Dennis Goodlett <dennis@hurricanelabs.com>
2020-10-26 14:08:42 +08:00
pancake
137fdd0821
Fix warning in the JSON parser (#17827)
json_parser.c: In function 'parse_value':
json_parser.c:240:9: warning: 'new_key' may be used uninitialized in this function [-Wmaybe-uninitialized]
     p = parse_value (js, new_key, p);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Co-authored-by: pancake <pancake@nopcode.org>
2020-10-26 14:07:15 +08:00
pancake
752787fdbc
Fix uninitialized pj instance in dreg.c (#17828)
dreg.c:294:3: warning: 'pj' may be used uninitialized in this function [-Wmaybe-uninitialized]

Co-authored-by: pancake <pancake@nopcode.org>
2020-10-26 14:06:18 +08:00
pancake
8eaf953b8a
Fix UB crash in cmd_kuery (#17835)
cmd.c:1510:3: warning: 'cur_cmd' may be used uninitialized in this function [-Wmaybe-uninitialized]

Co-authored-by: pancake <pancake@nopcode.org>
2020-10-26 14:05:10 +08:00
pancake
0f9b4604be
Initialize PJ pointer to avoid UB crashes (#17837)
Co-authored-by: pancake <pancake@nopcode.org>
2020-10-26 14:04:30 +08:00
pancake
c2865f1a2e
Fix uninitialized variable use in ostackptr (#17836)
disasm_stackptr.inc:124:29: warning: 'ostackptr' may be used uninitialized in this function [-Wmaybe-uninitialized]

Co-authored-by: pancake <pancake@nopcode.org>
2020-10-26 14:03:24 +08:00
pancake
cfb21c38e3
Fix UB in fcn_recurse (#17838)
```
fcn.c: In function 'fcn_recurse':
fcn.c:229:68: warning: 'omov_aop.disp' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (o_reg_dst && reg_src && o_reg_dst->offset == reg_src->offset && omov_aop.disp != UT64_MAX) {
fcn.c:181:10: note: 'omov_aop.disp' was declared here
  RAnalOp omov_aop, mov_aop = { 0 };
          ^~~~~~~~
fcn.c:229:17: warning: 'reg_src' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (o_reg_dst && reg_src && o_reg_dst->offset == reg_src->offset && omov_aop.disp != UT64_MAX) {
                 ^~
fcn.c:183:12: note: 'reg_src' was declared here
  RRegItem *reg_src, *o_reg_dst = NULL;
```

Co-authored-by: pancake <pancake@nopcode.org>
2020-10-26 14:03:02 +08:00
Paul I
dcd0f37817
Don't clear write cache in "aaa" (#17844) 2020-10-26 14:01:06 +08:00
Liumeo
dd79dc0c82
Fix ARM64 db/cmd/cmd_print (#17839) 2020-10-26 13:59:38 +08:00
Liumeo
db450794bc
Clean grub/kern/mm.c ##refactor (#17826) 2020-10-26 13:58:34 +08:00
Roman Hargrave
5aff070b0f
Make use of dbg.args on *nix and macos (#17846)
As with the windbg implementation of fork_and_ptraceme, this checks for
the presence io->args and appends them to the child command before
invoking it.

The primary purpose of this fix is to make argument-passing possible
when using Cutter to debug programs, as Cutter sets dbg.args in order to
pass user-provided arguments to the child task. Presently, this does not
do anything on *nix platforms, greatly limiting Cutter's usefulness
insofar as debugging.
2020-10-26 13:56:59 +08:00
David CARLIER
5e9fd04843
Fixing r_sys_pid_to_path for DragonFlyBSD ##util (#17842)
Same API and approach as FreeBSD.
2020-10-26 13:56:26 +08:00