19951 Commits

Author SHA1 Message Date
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
Riccardo Schirone
af67995ca3 macro->cmd should use a wrapper because of different types 2018-11-14 22:29:54 +01:00
p2mate
39b5d28ff4 Implement load_buffer for MZ parser ##bin
Signed-off-by: p2 <p2@psychaos.be>
2018-11-14 22:29:26 +01:00
dav1901
c1f30de193 Minor code cleanups free/R_FREE (#12157) 2018-11-14 21:23:20 +01:00
radare
f75a940c59
Improve the wasm disassembler (#12156) 2018-11-14 18:58:56 +01:00
Riccardo Schirone
37f547a6c5 Use R_BIN_TYPE_METH_STR instead of hardcoding the "METH" string 2018-11-14 17:30:38 +01:00
pancake
e3de9f0d4f Fix clusterfuzz-testcase-minimized-ia_fuzz-5664620711247872.dms 2018-11-14 15:39:41 +01:00
pancake
e305313648 Fix oobread in RBin.strings 2018-11-14 15:10:51 +01:00
pancake
9556ebb1f9 More warning issues 2018-11-14 13:47:43 +01:00
bart1e
d0052385ee Fix #11552 - Implemlent r_cons_more and refactor some less.c ##visual
* Moved functions to pager_private.h + fixed style issues
2018-11-14 13:15:50 +01:00
pancake
701ecb2835 More include fixes 2018-11-14 13:12:34 +01:00
pancake
4050d29eb1 Fix build of r2k-linux 2018-10-29 23:06:14 +01:00
pancake
1b7c0ccfe4 Fix build 2018-11-14 12:56:02 +01:00
pancake
19c2fb6443 Fix a shitton of warnings 2018-11-14 12:50:30 +01:00
pancake
2c22b3e54e Move btree into sdb's Attic 2018-11-14 12:33:25 +01:00
dav1901
b9c74118e2 Fix minor leaky issues (#12148) 2018-11-14 12:19:24 +01:00
Riccardo Schirone
8d9591eeaf Do not call r_anal_cc_arg if we don't have cc info (#12150) 2018-11-14 12:14:00 +01:00
Riccardo Schirone
34a6cda6f8 Mangling functions should accept NULL binfile 2018-11-14 11:20:11 +01:00
pancake
9e7e751958 Use the midrange regprofile for PIC baseline too 2018-11-14 11:18:56 +01:00
Artem Zinenko
4a2bc97a35 Fix #11918 - Moved r_print.h into r_util/r_print.h 2018-11-14 10:54:22 +01:00
Riccardo Schirone
f77ecfb357 Upgrade SDB and use the new HtPP, HtUP, HtUU ##refactoring
* sdb-sync: update to commit ea05ca8808605daa683a2b35f143e24c3a70f0c9
2018-11-14 10:47:28 +01:00
Khairul Azhar Kasmiran
187f5ede22 Honor asm.bb.middle in r_core_print_disasm_json() / pdfj ##disasm 2018-11-14 02:32:00 +01:00
dav1901
dfb9b0e5ae Fix minor leaks in ufs and mz 2018-11-14 01:57:23 +01:00
dav1901
8b83d03c99 Minor code cleanups free/R_FREE (#12145) 2018-11-13 23:41:28 +01:00
Khairul Kasmiran
5759f217c9 Remove unneeded check 2018-11-13 22:58:45 +08:00
Riccardo Schirone
90058945d2 Remove "referenced" from RBinObject and remove get_object ##refactoring 2018-11-13 13:05:18 +01:00
Khairul Azhar Kasmiran
52aaab8e3c No invalid instruction error on debug 2018-11-13 12:25:50 +01:00
David CARLIER
5783cf42c4 Use after fix due to task free on non positive counting (#12138) 2018-11-13 11:56:57 +01:00
Anton Kochkov
8bc369ef3f Move CS_TIP to aquynh/capstone@f01c267f 2018-11-13 18:05:33 +08:00
radare
a4ddb43fef
Fix ios-arm32 ##build 2018-11-13 02:12:55 +01:00
Paweł Łukasik
22ff13e069 Add dbg.verbose variable to show more info when debugging ##debug 2018-11-13 02:10:21 +01:00
p2mate
d29085336a Cleanup and fix the MZ ##bin
* use virtual addresses to deal with the MZ header and reloc table not being part of the load module
* handle wrapping for CS:IP
* rework r_bin_mz_get_segments

Signed-off-by: p2 <p2@psychaos.be>
2018-11-13 00:28:35 +01:00
Stefan Ilic
7181250017 Fix 2 leaks in RBinInfo.free() 2018-11-13 00:26:45 +01:00
Paul I
74b5421ed4 Fix gmtime_r for msvc ##windows 2018-11-13 00:24:23 +01:00
dav1901
9b0fbf1ee4 Minor code cleanups - free/R_FREE/etc 2018-11-13 00:23:49 +01:00
Sergi Àlvarez i Capilla
a9ac72f160 Implement scr.scrollbar ##visual 2018-11-13 00:22:22 +01:00