Commit Graph

20186 Commits

Author SHA1 Message Date
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
pancake
53635d59a0 Fix #12141 - minor leaks in grub code 2018-11-19 12:14:01 +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 e39af6f69e.
* 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
pancake
aaea9b973c Add -static in sys/static for non-macos 2018-11-16 16:53:50 +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
David CARLIER
3d830a3832 Couple of leak fixes 2018-11-15 16:34:11 +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
bb3d054c6d sys/clang-format-diff: other small fixes to the style script 2018-11-15 12:18:12 +01:00
Riccardo Schirone
79edcb32f5
Make sure only one RBinObject is created for each RBinFile (#12169) 2018-11-15 11:44:46 +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
pancake
0f81fb8dc3 Fix 3 byte overflow in r_print_hexdump() 2018-11-15 01:40:11 +01:00
pancake
1d7967423a Fix #12111 - Add help for iS= 2018-11-14 23:49:57 +01:00
pancake
d5d7632b77 Implement help in all the i subcommands ##bin 2018-11-14 23:49:57 +01:00
lzutao
50320592a6 Fix #12060 and #12072 - Rewrite r_num_abs and r_num_units ##core
r_num_abs:

- Make r_num_abs static inline
- Use unsigned long long type when defining TB macro
- Use st64 instead of long long

r_num_units:

- Add len argument for buf in r_num_units
- Add PB and EB for r_num_units
- Always display one number after decimal point

  * This change simplifies the code
- Use long double type as assigning from ut64 to double cause data loss

r_num_tail_base:

- Use isxdigit (fast) instead of isHexDigit (slower)
- Rename nth to get_nth_nibble

Update all functions to use with new r_num_units:

- Remove side effect when using in other functions like cb_printf

* Trim trailing .0 when input is power of 2
2018-11-14 23:35:44 +01:00
Christopher Hewitt
451c76c71d Open radare2 project after loading plugins and keep the -e flags ##projects 2018-11-14 22:31:02 +01:00