17225 Commits

Author SHA1 Message Date
Riccardo Schirone
d5c8b91c0b
fix some covs (#12238) 2018-11-20 10:15:18 +01:00
Giovanni
dd84bfe3de Fix #12194 - Resolve symbol names in WebAssembly bins ##bin 2018-11-20 01:19:23 +01:00
David CARLIER
033e073c4e Little warning build fixes (#12232) 2018-11-20 01:13:54 +01:00
Florian Märkl
7c0687b8fb Fix #12022 - Slow backtrace fixed by speeding up ptrace_wrap_func() ##debug 2018-11-20 01:13:30 +01:00
dav1901
8e7aea3198 Minor cleanups (#12231) 2018-11-19 22:55:34 +01:00
radare
5f270658c5
New RBin plugin for "symbols" files ##bin 2018-11-19 22:54:58 +01:00
Amith Venugopal
0f23f98c6c Implemented tec command ##types 2018-11-19 22:30:41 +01:00
Khairul Azhar Kasmiran
ef9ddac95e Simplify r_anal_fcn_add_bb() (#12226) 2018-11-19 21:09:27 +01:00
radare
c042d3e136
Fix echo in ppc disassembler on invalid instructions ##disasm 2018-11-19 18:24:25 +01:00
radare
50801791e2
Fix #9825 - Wrong import addresses in the ELF for ppc64 elfs ##bin 2018-11-19 18:24:10 +01:00
dav1901
23fb5bc197 Fix minor leak (#12220) 2018-11-19 16:22:33 +01:00
Khairul Azhar Kasmiran
389f4ddffe Honor asm.bb.middle in r_core_print_disasm_instructions() ##disasm 2018-11-19 16:21:52 +01:00
radare
f0ac280d17
Fix #11714 - VJ not working sometimes (#12217) 2018-11-19 14:44:54 +01:00
dav1901
c7fc809bd7 Minor dead code cleanups (#12203) 2018-11-19 13:00:53 +01:00
sivaramaaa
fa6cbec50b Fix #9709 - Implement aeab to get input and output regs of the basic block ##anal 2018-11-19 11:16:20 +01:00
Riccardo Schirone
9ea01145fe bin/elf: make strttabaddr a ut64 (#12214) 2018-11-19 11:13:45 +01:00
radare
f2ce982aeb
Fix #12188 - Remove unused variable and fix 1->l 2018-11-19 11:13:09 +01:00
David CARLIER
9931f0f35c Fix #12151 - unaligned acess in pic 2018-11-19 02:59:11 +01:00
Amith Venugopal
b9b32f072d Add ttc - dump types in C syntax ##types 2018-11-19 02:47:36 +01:00
Ayman Khamouma (ak42)
4dede6866e Fix r_core_anal_graph_to and abt, abtj commands ##anal 2018-11-19 02:35:23 +01:00
dav1901
cc7023dae8 Fix null deref in RAnal.java 2018-11-19 02:17:57 +01:00
Khairul Azhar Kasmiran
3d2058591f r_core_disasm_pdi() honors asm.bb.middle (#12204) 2018-11-19 02:16:54 +01:00
radare
4aacf78447
Fix some bugs in RBin.mdmp ##bin 2018-11-19 02:15:19 +01:00
Khairul Kasmiran
6d0f9ce282 Combined 2 assignments 2018-11-18 13:59:05 +08:00
David CARLIER
f21f38a255 Fix #12166 - Implement tt* to list all types at once ##types 2018-11-17 22:47:34 +01:00
Riccardo Schirone
015ed58426 ELF plugin code cleaning ##refactor
* clang-format-diff: do not put space after Elf_
* bin/elf: remove warning because it's already printed by R_LOG_WARN
* bin/elf: rename get_static to is_static
* bin/elf: a bit of refactoring in init_dynamic_section
* Revert "bin/elf: other cleaning"
This reverts commit e39af6f69e96feceea648bf1d492524882013c4e.
* bin/elf: cleaning in r_bin_elf_get_sections
* bin/elf: refactor a bit get_sections_from_phdr
* bin/elf: fix create_section_from_phdr
* bin/elf: small style fixes in get_boffset
* bin/elf: simplify the code by using READWORD instead of #if/#else
* bin/elf: fix read_phdr because you need to pay attention to the order
2018-11-17 22:45:49 +01:00
Khairul Azhar Kasmiran
d51b4bbb5f Enable pirj (#12198) 2018-11-17 18:20:05 +01:00
p2mate
f074d51bf9 Remove deprecated load methods from MZ parser ##bin 2018-11-17 18:19:39 +01:00
dav1901
558a79cae7 Fix few minor leaks and remove dead code (#12201) 2018-11-17 18:19:04 +01:00
Amith Venugopal
36bedf1131 Add ttj in tt? 2018-11-17 03:52:45 +01:00
Khairul Azhar Kasmiran
d1ef5faef8 func_walk_blocks() ignores asm.bb.middle (#12193) 2018-11-16 16:38:36 +01:00
Amith Venugopal
b0b0bbd846 Fixed ttj feature for printing in JSON ##anal 2018-11-16 16:38:13 +01:00
Riccardo Schirone
b93656e8fa Do not try to set the current binfile if it cannot be find 2018-11-16 10:32:24 +01:00
pancake
6db6c86dae Set as dword all the jmptbl offsets ##anal 2018-11-16 10:25:11 +01:00
pancake
b8deafe0a8 Handle libr/libs.custom.mk to make partial r2 builds if you need just a portion of r2 ##build 2018-11-16 08:37:47 +01:00
pancake
712fca842c Improve the support for emscripten asm.js/wasm 2018-11-15 22:49:52 +01:00
Riccardo Schirone
8a6348b692
Fix another assert when printing blocks (#12173)
* Do not NULLIFY the result if the list is empty when getting boundaries

An empty list is different than a NULL return value. The caller has to
call r_list_free anyway on the returned list, so there's no real
advantage in returning NULL, it just makes the caller's life harder
because it cannot understand if NULL is returned because the list was
empty (e.g. there are no IO maps, etc.) or because there were some
errors.

* Check for NULL and exit if so, that's an error.

* Check r_core_get_boundaries_prot return value for NULL
2018-11-15 19:35:47 +01:00
pancake
913a8563fe Improve the visual titlebar in cursor is enabled ##visual 2018-11-15 19:09:36 +01:00
pancake
f5ae9bb5b8 Change the behaviour of V< and V> to make it slurp or dump files ##visual 2018-11-15 19:09:36 +01:00
pancake
cb15913a70 Initial support for key repetitions in visual mode ##visual
* V3l is the same as Vlll, also works in cursor mode
2018-11-15 19:09:36 +01:00
pancake
cb11c0a329 Add help for wtf? 2018-11-15 19:09:36 +01:00
lzutao
5c9eb4f43b Fix #12053 - Flushing stdin is illegal 2018-11-15 19:06:57 +01:00
dav1901
20ae946c2f Fix few realloc misusages (#12182) 2018-11-15 18:45:23 +01:00
Khairul Azhar Kasmiran
cff54c1648 Enable pdrj (#12178) 2018-11-15 16:35:50 +01:00
Bet4
8f2f9de1f3 Make ood use absolute path
Fixes #12167
2018-11-15 14:38:43 +01:00
Riccardo Schirone
e44b272157
Do not check vaddr for isValidSymbol (#12176)
The only fact that there is no paddr, means the symbol is not present in
the file, so there's nothing to analyze (at least statically)
2018-11-15 14:04:09 +01:00
Riccardo Schirone
1c199adf9b
Vaddr assert (fix #11948) (#12170)
* Use is_vaddr in bin/elf as it is more meaningful

* Do not consider valid symbols with paddr UT64_MAX

This is set when the symbol does not have a paddr, so it means there
cannot be any code there and it's useless analyzing it.
2018-11-15 10:35:47 +01:00
Riccardo Schirone
08422752f2 Switch construct_rop_gadget to Ht 2018-11-15 10:23:26 +01:00
Riccardo Schirone
026d1914cb Check core->files before trying to purge the list 2018-11-15 10:22:57 +01:00
pancake
481ddade5b Add magic signature for LLVM IR bitcode files 2018-11-15 04:43:33 +01:00