2726 Commits

Author SHA1 Message Date
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
pancake
5391221eb5 Fix regression in the smd loader 2018-08-07 15:47:35 +02:00
pancake
704bd74011 Fix the last googlefuzz crash 2018-08-07 14:42:30 +02:00
radare
726be8103a
Fix googlefuzz-9748 - Heap-buffer-overflow in r_read_le32 (#10972) 2018-08-07 14:30:31 +02:00
radare
bcaad8ddf9
Fix googlefuzz-9744 - SMD oobread crash (#10962) 2018-08-07 13:30:06 +02:00
Riccardo Schirone
5c476a1b5b bin_elf.c: use sizeof(Ehdr) instead of hardcoded number (#10963) 2018-08-07 12:08:25 +02:00
David CARLIER
cc30a38cc0 Detects OpenBSD cookie protection for functions which is added with .openbsd.randomdata elf section. (#10967) 2018-08-07 12:07:43 +02:00
Riccardo Schirone
baa66bc108 bin/p/bin_bootimg: do not divide by 0 (#10964)
* make load_bytes fail if header is not present
2018-08-07 11:41:47 +02:00
Riccardo Schirone
69601be427 format/zimg: make sure there are enough bytes in the buffer 2018-08-07 11:40:55 +02:00
Anton Kochkov
5b5667138c Fix UB and UAF 2018-08-07 13:00:06 +08:00
pancake
7444d55483 Disable pemixed inside the plugin 2018-08-06 10:34:21 +02:00
pancake
f2bf39beb5 pemixed is no longer our friend 2018-08-06 09:27:27 +02:00
pancake
efe53437ff Add xtr.pemixed plugin in the default list, fix description and add license line 2018-08-06 01:26:14 +02:00
JohnPeng47
ab92677eda Add pemixed plugin 2018-08-06 01:22:11 +02:00
radare
6d2348fef5
Fix #10902 - Crash when parsing non-null terminated libraries in mach0 binaries (#10946) 2018-08-06 00:45:09 +02:00
pancake
6059a709b6 Fix two stupid warnings in bin_omf 2018-08-06 00:02:29 +02:00
Khairul Azhar Kasmiran
672b2a3850
Add hvaddr to iee(j) output; haddr -> hpaddr (#10899)
* iee(j): add hvaddr

* haddr -> hpaddr

* Minor realignment
2018-08-04 08:17:37 +08:00
pancake
9f4a8d325f Fix #10864 - crash in vsf header parsing 2018-08-01 13:12:05 +02:00
Iru Cai
e8d1fa559f PE: fix bin_pe_rva_to_paddr when vsize is 0 in section header
- set vsize as raw data size if it's zero in section header
- use bin->section instead of the data in section header
2018-08-01 10:19:39 +01:00
Iru Cai
358b317b21 PE: save PE_(r_bin_pe_get_sections) result to bin->sections 2018-08-01 10:19:39 +01:00
pancake
c82b3a4e26 Fix crash in hbo_swift-sd.c:102_1.elf 2018-08-01 05:26:05 +02:00
pancake
d59bcb8aa9 Fix read_bin_xtr_fatmach0.c:22_1.class crash 2018-08-01 05:18:13 +02:00
pancake
8f5783fef0 Fix mdmp crash 2018-08-01 05:13:51 +02:00
pancake
32332582ed Fix #10865 - hang_07 - infinite loop because of a signed buffer 2018-08-01 00:57:36 +01:00
pancake
96391f83f8 Fix #10865 - hang_06 - Skip invalid cfstring sections 2018-08-01 00:57:36 +01:00