Commit Graph

20186 Commits

Author SHA1 Message Date
David CARLIER
3aed538f7b Fiximg little clang warnings in various places. (#12439) 2018-12-10 11:55:35 +01:00
pancake
d8888bb312 Fix null assert in 2018-12-10 10:31:51 +01:00
Vanellope
61d28bb00b Better Hexdump support ##panels (#12432) 2018-12-10 00:04:46 +01:00
David CARLIER
384fe0f903 Silencing/fixing clang warnings. (#12430) 2018-12-10 00:04:21 +01:00
Khairul Azhar Kasmiran
7a12996f2e r_anal_bb_from_offset() honors anal.jmpmid (#12436) 2018-12-10 00:03:54 +01:00
pancake
fb55a230e3 Fix wasm analysis for the end instruction ##wasm 2018-12-09 00:26:05 +01:00
Vanellope
b9651f764c Remove mouse events thoroughly from panels ##panels (#12425) 2018-12-06 23:02:18 +01:00
David CARLIER
7bf0380e77 Further clang warning fixes (#12416) 2018-12-06 17:00:08 +01:00
dav1901
b88806f65f Fix more clang-analyzer warnings (#12424) 2018-12-06 16:55:09 +01:00
David CARLIER
2cd65e45b1 Fix couple of clang warnings/java plugin (#12404) 2018-12-06 15:19:58 +01:00
Álvaro Felipe Melchor
8ea9758b8e Remove logic from _CbInRangeAav when arch equal to arm/thumb (#12398)
It was assumed all the values were functions but that might not be
true and then wrong hints would be set.

This should be handled by ESIL which is the only one it will know whether
a call is gonna be made with the data under analysis.

The issue #12340 shows how data is wrongly interpreted.

const int a = 0x000103c9;

int main()
{
	int b;
	b = 2;
	b = b + a;
	return 0;
}

It gets translated to
┌ (fcn) main 56
│   main (int argc, char **argv, char **envp);
│           ; UNKNOWN XREF from entry0 (+0x34)
│           0x000103c8      04b02de5       str fp, [sp, -4]!
│           0x000103cc      00b08de2       add fp, sp, 0
│           0x000103d0      0cd04de2       sub sp, sp, 0xc
│           0x000103d4      0230a0e3       mov r3, 2
│           0x000103d8      08300be5       str r3, [local_8h]          ; 8
│           0x000103dc      1c209fe5       ldr r2, aav.0x000103c9       ; [0x10400:4]=0x103c9 aav.0x000103c9
│           0x000103e0      08301be5       ldr r3, [local_8h]          ; 8
│           0x000103e4      023083e0       add r3, r3, r2
│           0x000103ec      0030a0e3       mov r3, 0
│           0x000103f0      0300a0e1       mov r0, r3
│           0x000103f4      00d08be2       add sp, fp, 0
│           0x000103f8      04b09de4       pop {fp}
└           0x000103fc      1eff2fe1       bx lr
            ; DATA XREF from main (0x103dc)
            0x00010400      .dword 0x000103c9 ; main

There are other cases where they should be handled elsewhere like below

|       #   0x000102f8      0c009fe5       ldr r0, [0x0001030c]        ; [0x1030c:4]=0x103c8 main
|       #   0x000102fc      0c309fe5       ldr r3, aav.0x00010404       ; [0x10310:4]=0x10404 aav.0x00010404
|       #   0x00010300      ebffffeb       bl sym.imp.__libc_start_main ;[1]   ; int __libc_start_main(func main, int argc, char **ubp_av, func init, func fini, func rtld_fini, void *stack_end)
        #   0x00010304      f0ffffeb       bl sym.imp.abort            ;[2]   ; void abort(void)

r2 should handle __libc_start_main to detect those functions but aav
should not make those assumptions
2018-12-06 15:19:39 +01:00
Giovanni
973b8e703e Fix #12409 - wasm function ids and exports (#12414) 2018-12-06 15:19:15 +01:00
Vanellope
a6a234024a Minor fix when opening a new panel ##panels (#12419) 2018-12-06 15:18:40 +01:00
Khairul Azhar Kasmiran
2a25cddf41 Use size instead of section->size in section comments (#12423) 2018-12-06 15:18:28 +01:00
EvenCode
2150ffce75 Issue #12103 resolved (#12422) 2018-12-06 15:17:45 +01:00
lzutao
f18838fff5 Improve the meson scripts ##build
* meson: Update to 0.47

Use a fallback version when sys/version.py failed.

* meson: Remove redundant calls to get_option

No need to join prefix with other project directories.

* meson: Check for explicit_memset

* meson: Use install_man to install manpages

Also, let install zsh completion files.

* meson: Install shlr/www only if use_webui built option is true

* Add use_webui build option

Rationale: Debian doesn't install shlr/www by default, give them an option
to enable/disable its installation.

* meson: Ensure python3 and no hard-code version

* meson: Ensure R2_DATDIR, R2_INCDIR, R2_LIBDIR be absolute path

* meson: WWWROOT be absolute path
2018-12-06 15:17:25 +01:00
Dan Robertson
e980677887 r_bin_dwarf_expand_*: fix memory error (#12411)
The use of memset to set the rest of the newly realloc'd buffer in
various r_bin_dwarf_expand_* functions was overwriting portions of
the buffer that had previously been written to.

The functions including said error were the following:

 - r_bin_dwarf_expand_die
 - r_bin_dwarf_expand_cu
 - r_bin_dwarf_expand_abbrev_decl
 - r_bin_dwarf_expand_debug_abbrev
2018-12-06 15:12:47 +01:00
dav1901
3b03e923f5 Fix few clang-analyzer warnings (#12415) 2018-12-06 15:12:27 +01:00
pancake
64f2e25c3a Fix #12405 - Handle ^C in radiff2 -x 2018-12-05 12:41:44 +01:00
dav1901
ab17935659 Fix clang warnings (#12413) 2018-12-05 12:35:37 +01:00
Vanellope
01614a9720 Cleaned up some macro ##panels (#12410) 2018-12-05 12:32:07 +01:00
Dan Robertson
81b3d9aa7a sys/user.sh: Allow setting an install path (#12412)
Users may want to install radare2 to a different directory than ~/bin.
Parse --install-path in sys/user.sh to allow for users to do so.
2018-12-05 12:30:36 +01:00
pancake
56c7a1edd1 After release version bump 2018-12-05 12:27:29 +01:00
pancake
0cbd616e3b Fix posix shell regrssion in r2pm -s 2018-12-05 12:26:00 +01:00
pancake
57dd0b4e7e Release 3.1.3 2018-12-04 17:49:59 +01:00
David CARLIER
9e20fe9bbb Various mem leak fixes (#12400) 2018-12-04 17:23:09 +01:00
Vanellope
b6f2ebb20b Boolify caching param and fixed a bug of loading saved layout, plus added afvW and afvR in menu ##panels (#12401) 2018-12-04 16:09:54 +01:00
dav1901
cdaa507e15 Fix more clangs (#12399) 2018-12-04 16:09:18 +01:00
dav1901
3ca357b182 Fix few clang warnings (#12394) 2018-12-04 14:19:30 +01:00
radare
bbebd7ed86
Fix aaa issue in NSO bins which use io.cache (#12396) 2018-12-04 12:50:09 +01:00
pancake
5df3872b9d Boolify r_cons_yesno() 2018-12-04 12:49:43 +01:00
Vanellope
7653c2eda9 Creating a panel from the menu inquires the user for cache ##panels 2018-12-04 12:48:42 +01:00
dav1901
083810065c Fix few leaks in asn1 strings 2018-12-04 11:45:45 +01:00
radare
a3d181a8a0
Fixes spotted by clang-analyzer (#12391) 2018-12-04 10:45:46 +01:00
pancake
f08d8bedd5 Fix visual xrefs address 2018-12-04 10:45:15 +01:00
dav1901
2f0f89693f Minor fixes/cleanups (#12388) 2018-12-03 23:32:08 +01:00
pancake
b453df6acc Release 3.1.2 2018-12-03 23:24:57 +01:00
pancake
9fff3e85ed Fix visual xrefs 2018-12-03 23:24:52 +01:00
radare
ebf02bb4be
Fix double-free in RBinClasses regression introduced in d6fd896a65 2018-12-03 22:52:00 +01:00
Vanellope
97acb1177b Some fixes in panels ##panels 2018-12-03 22:36:06 +01:00
pancake
51acf7295e Fix regression 2018-12-03 21:57:35 +01:00
lzutao
7ecf4f4ce7 Fix clang warnings (#12386)
Those are -Wformat, -Wincompatible-pointer-types, and -Wunused-variable.
2018-12-03 18:24:27 +01:00
pancake
d461281380 Fix regression 2018-12-03 17:48:28 +01:00
Khairul Azhar Kasmiran
2a0b909513 Fix Visual 'k' into basic block ##visual 2018-12-03 17:43:12 +01:00
pancake
2ebe4db8b8 Honor regsize to detect UB shift overflows in ARM64 code emulation ##anal 2018-12-03 16:40:24 +01:00
pancake
30c26ec104 Some more improvements for the visual xrefs (fix undo seek and more) 2018-12-03 16:36:26 +01:00
pancake
df90a3c462 Fix #12384 - Crash in fuzzed macho binary 2018-12-03 15:55:13 +01:00
pancake
df167c7db5 Fix #12376 - crash in: rasm2 -a arm -b 64 '0 ,0,0,0,0,0,0,' 2018-12-03 15:29:26 +01:00
pancake
a66d2556a0 Fix assert in aaa when entrypoint is wrong 2018-12-03 15:26:15 +01:00
pancake
b143e1b1b5 Release 3.1.1 2018-12-03 03:31:57 +01:00