2850 Commits

Author SHA1 Message Date
Maijin
394d125b79
Check canary with symbols fix #11477 2018-09-11 14:00:12 +02:00
Maijin
2b8c94c2cf Fix #11418 dbg_file in full (#11453) 2018-09-10 16:25:50 +02:00
Giovanni
1dbdabf83c C-Sky and MCore support for r2 (#11448) 2018-09-08 19:52:33 +02:00
Maijin
e935992de5 More verbose idpd 2018-09-08 13:11:10 +02:00
David CARLIER
09e8ccead3 Redo the previous PR. (#11415)
Fix couple of memory leaks only removed
one faulty line which led to garbage.
2018-09-06 12:43:50 +02:00
Riccardo Schirone
1b32083995 Travis was green (#11408)
* anal_x86: keep same syntax and POP value out of esil stack in push sp

NOTE: The other syntax was causing issues in afta, not sure why

* Revert "Further mem leak fixes (#11398)"

This reverts commit 38d9170f5da82ece05d1b90e366763999e633e34.

* anal_x86_cs: just use one expression for the PUSH x86 operation

* libr/core/cmd: set core_sysenv only when calling external scripts
2018-09-06 03:51:02 +02:00
David CARLIER
38d9170f5d Further mem leak fixes (#11398) 2018-09-05 14:56:29 +02:00
David CARLIER
89d6b8138c Fix couple of minor issues. (#11388) 2018-09-05 11:01:07 +02:00
radare
69e5499f69
Fix last coverity issue found in the ELF parser (#11369) 2018-09-03 23:47:02 +02:00
Riccardo Schirone
eee1385466
Meson private (#11331)
* meson: refactor library cflags
* meson: use visibility=hidden by default
* remove unused var
* magic/meson: replace tabs with spaces
2018-09-03 10:07:28 +02:00
Khairul Azhar Kasmiran
e5b5715be3 Fix #11307 - Fix an ELF clusterfuzz crash (#11354) 2018-09-02 10:41:32 +02:00
Khairul Kasmiran
25d3aa97f9 Add confidence-building promotion 2018-08-30 20:48:20 +08:00
Neven Sajko
d8784641ee Add parentheses in macros where needed for safety (#11290) 2018-08-30 13:16:50 +02:00
Fangrui Song
c69682c001 Extract bin_pe{,64}.c common parts to bin_pe.inc (#11292) 2018-08-29 20:20:05 +02:00
Khairul Azhar Kasmiran
7300d12505 Fix #11235 - Fix one more clusterfuzz crash (#11296) 2018-08-29 20:19:06 +02:00
Riccardo Schirone
6a66a9701e mdmp: fix googlefuzz crash (#11298) 2018-08-29 20:17:28 +02:00
Riccardo Schirone
e6e12f42d5
Fixes #10903: slow bins (#11294)
* mach0: use ut32 because those fields are unsigned in Mach0
* bin_mach0: do not process section if it cannot be read
* bin_vsf: detect infinite loop
2018-08-29 15:19:21 +02:00
Khairul Azhar Kasmiran
65ebf72e66 Fix #11227 - Fix another clusterfuzz crash (#11291) 2018-08-29 10:19:33 +08:00
Khairul Azhar Kasmiran
4042f87239 Fix iM paddr when it's from the main symbol (#11253) 2018-08-27 16:09:32 +02:00
Fangrui Song
05fd10fd53 Fix memleak in elf.c symbols_by_ord_size (#11255) 2018-08-26 14:15:36 +02:00
Fangrui Song
703ae306cc Extract bin_write_elf.c common parts to bin_write_elf.inc 2018-08-24 15:57:05 +02:00
Fangrui Song
e7de8b082f Extract bin_elf.c common parts to bin_elf.inc and #include bin_elf.inc instead of bin_elf.c 2018-08-24 15:57:05 +02:00
Khairul Azhar Kasmiran
6436cc5934 Fix rabin2 -ee paddr (#11210) 2018-08-23 14:33:26 +02:00
Khairul Azhar Kasmiran
8a5d6195a0 Fix bin_mdmp.c -Wstringop-truncation warnings for #10338 (#11192) 2018-08-22 13:19:27 +02:00
radare
1c83586844
Fix rabin2 -H on 32bit mach0 binaries (#11190) 2018-08-22 13:15:43 +02:00
pancake
6d05365f30 Make RAsmOp use RStrBuf instead of fixed-size buffers
* Seems to work, but there are many things to improve and fix
* Fixed some bugs (overflow, sandbox bypass, ..)
* Exposes some memleaks and bad api usages.
* Refactor all the things! \o/
* Fix z80, tms320 disasm and x86.as
* Care about memleaks
* Support meson
* And fix more tests related to pda and pdj and m68k
2018-08-22 11:43:05 +02:00
Khairul Azhar Kasmiran
2413ef6d93 Fix #11150 - Fix clusterfuzz mdmp crash (#11183) 2018-08-22 11:01:16 +02:00
Khairul Azhar Kasmiran
4da4f4bb0f Fix #11126 - fix clusterfuzz dex crash (#11169) 2018-08-22 02:48:28 +02:00
Paul I
620affc89e Fix some warnings (#11152) 2018-08-20 14:52:02 +08:00
Fangrui Song
5baec7197d bootimg: rename ALIGN to ROUND_DOWN to avoid conflict with /usr/include/machine/param.h on FreeBSD (#11153) 2018-08-19 21:58:29 +02:00
pancake
bfecffe2fe file is not yet bfile 2018-08-19 17:20:48 +02:00
pancake
26d50c31da Fix memleaks in RBin 2018-08-19 16:39:55 +02:00
Fangrui Song
2ea5f62d14 Remove #pragma pack to suppress -Wpragma-pack-suspicious-include (#11114)
These structs are defined in the way that no #pragma pack is needed.
2018-08-18 03:43:46 +02:00
pancake
40c97aacc3 Fix underflow in omf 2018-08-18 03:39:13 +02:00
pancake
10052884ec Fix crash in dex parser 2018-08-18 03:38:53 +02:00
pancake
7e083b57fb Fix last coverities (2 memleaks) 2018-08-17 17:38:24 +02:00
radare
d2995a13b4
Improve search.in= boundaries (#11109)
* Improve the SearchBoundaries
- Honor vaddr/paddr
- Parse rwx strings instead of hardcoded strings
- Kill io.sections.* and add bin.sections
* PA search boundaries should at work with the debugger mode
* Kill io.sections and improve search.in with dbg.maps
* Simplify maskMatches
* Fully kill io.sections in search.in and add bin.section
* Expose page permissions in search boundary list and remove dead code
2018-08-16 18:00:21 +02:00
Fangrui Song
cb0a6f0ca3 Fix -Wunused-variable (#11080) 2018-08-15 10:25:53 +02:00
Giovanni
7b3764c6fe Wasm analisys (#11094)
* fixed several bugs on wasm anal
* fixed wasm loop opcode
* block doesnt make sense.. is a loop?
* wasm now working and making sense
* fixed a few bugs
2018-08-15 12:30:34 +08:00
Khairul Kasmiran
9a608899a1 Improved comment slightly 2018-08-14 21:02:02 +08:00
pancake
6334b8c8bd Fix #11036 - Fix oobread crash in serch bounds within aaV 2018-08-13 16:20:34 +02:00
pancake
747445debe Fix #11038 - double-free in PE 2018-08-13 16:20:34 +02:00
Khairul Kasmiran
855faff5f4 Added clarifying comment 2018-08-13 18:45:12 +08:00
pancake
960b0fc211 Initial cleanup of the rbin api 2018-08-12 03:02:05 +02:00
pancake
4713c7f683 Fix crash in DEX found by Google's clusterfuzz (oobread with asan) 2018-08-11 23:22:48 +02:00
radare
915917e73b
Fix clusterfuzz-9776 - 4byte oobread in ELF (#11009) 2018-08-10 00:41:45 +02:00
David CARLIER
b87ae5401e fix dump_strings signature (#11008) 2018-08-09 21:17:43 +02:00
Khairul Azhar Kasmiran
be60efe129
Set baddr of smd binaries to 0 (#10995) 2018-08-09 19:35:42 +08:00
pancake
adf3f3aab4 Fix psx strings 2018-08-09 11:41:21 +02:00
pancake
33181960cd Fix map permissions in psx executables 2018-08-09 00:43:40 +02:00