Commit graph

1831 commits

Author SHA1 Message Date
pancake
bfb49516e1 Some minor code cleanup for ART 2015-11-26 12:56:07 +01:00
pancake
615dffca0e Fix w32 build 2015-11-23 21:08:04 +01:00
Dax
412934d20e Initial PSX Executable Support
PSX Plugin: Deleted useless file
PSX Plugin: Adjusted coding style, minor fixes
PSX Plugin: Removed typo, adjusted makefile, call check_bytes with correct parameters
2015-11-23 20:56:19 +01:00
Álvaro Felipe Melchor
893b094cf7 Fix ffc9406 crash by revskills 2015-11-23 19:00:57 +01:00
pancake
a31cd1101e Initial import of the VAX asm/anal/bin support 2015-11-23 12:34:53 +01:00
pancake
25ec4623b4 Fix 3757ca.. objc mach0 crash from @revskills 2015-11-22 23:08:53 +01:00
pancake
7abb81f22a Fix 054164 objc parser crash by @revskills 2015-11-22 23:03:31 +01:00
pancake
41ef4a008f Fix 3496c4 sample from @revskills 2015-11-22 22:06:53 +01:00
pancake
b5333accaa Fix objc demangle crash (thx @revskills) 2015-11-22 21:56:23 +01:00
pancake
ccfee9fcca Fix many important issues reported by clang-analyzer 2015-11-22 11:27:45 +01:00
pancake
88038a85ad Fix some RBinSymbol->name issues and drop null defs (-211LOC) 2015-11-22 01:09:02 +01:00
pancake
94089be030 Fix bin.smd loading 2015-11-12 12:58:33 +01:00
Álvaro Felipe Melchor
d3a5065a23 Fix a heap use after free 2015-11-19 23:05:09 +01:00
Álvaro Felipe Melchor
50b2e62552 Fix crash in mach0 loader 2015-11-19 23:05:09 +01:00
pancake
b35b830446 Fix mach0 regression introduced in 081ba8343 2015-11-18 11:40:34 +01:00
Álvaro Felipe Melchor
081ba83431 Fix crash 6f29967c0 by revskill 2015-11-17 22:44:48 +01:00
pancake
a50d671b4e Drop some unnecessary warning messages 2015-11-17 13:30:02 +01:00
pancake
0556a14402 Fix #3697 - Only thumb align in thumb and code segments 2015-11-17 12:51:37 +01:00
pancake
04cd1250c2 Add alignment for AVR code 2015-11-15 00:29:33 +01:00
Jeffrey Crowell
6ea16a56f4 fix some crashes in the NES bin
cc @mossberg
2015-11-12 13:46:56 -05:00
pancake
7901b57803 Fix #3684 - Do not flag LOCAL NOTYPE ELF symbols 2015-11-12 10:06:16 +01:00
pancake
ad74a6ec6b Move msil and mdmp into radare2-extras, add r2pm pkgs 2015-11-11 11:07:32 +01:00
pancake
495d209a61 Fixes for elf64-pie main identification 2015-11-10 13:00:19 +01:00
pancake
b701626cfc Fix some clang-analyzer issues 2015-11-10 12:18:27 +01:00
Álvaro Felipe Melchor
9a87db5b06 Fix warning when loading fatmach from r2r 2015-11-09 21:47:43 +01:00
pancake
2e9cc2f1b2 Fix issues with DEX flags and class methods 2015-11-09 21:47:11 +01:00
pancake
e37ada9096 Fix some asan issues with latest rbin changes in dex 2015-11-09 18:51:45 +01:00
pancake
164dcada3b More RBin memory usage optimizations 2015-11-09 12:12:18 +01:00
pancake
45de9bc433 Shrink Imports and Strings RBin memory footprint 2015-11-09 04:41:31 +01:00
pancake
baf63a0cba Reduce RBinSymbols memory (smaller footpronum) 2015-11-09 03:41:07 +01:00
pancake
e359b0b2bf Fix crash regression in rbin, use ptrbuf instead of dupbuf, mem opt lost 2015-11-09 01:03:07 +01:00
pancake
091eaaca91 Optimize memory usage in RBin 2015-11-09 00:07:46 +01:00
pancake
9c9bb2dbd5 Memory optimization for flags (-70%) + some warnfixes + sdb-sync 2015-11-08 23:38:42 +01:00
pancake
b3b5221e1e Add cryptheader sdb mach0 field 2015-11-06 11:21:48 +01:00
pancake
8f48a3b9a7 Fix AVR disasm regression and bin.elf=avr forces 16bit mode 2015-11-05 09:20:47 +01:00
pancake
3d43555a06 Fix #3649 - minidump segfault 2015-11-05 01:47:29 +01:00
Álvaro Felipe Melchor
c3034a0a63 Fix malformed fatmach 2015-11-05 01:00:57 +01:00
pancake
f735557b4e Fix @revskills 0d27cc crash in bin.sms 2015-11-04 19:33:04 +01:00
Anton Kochkov
51a204868c Fix Cygwin64 building 2015-11-03 14:16:08 +03:00
pancake
b22ed19aa1 Some CA fixes related to OMF 2015-11-02 12:58:01 +01:00
pancake
dd47aba9a2 Fixes for sys/static.sh 2015-11-01 10:26:38 +01:00
Jeffrey Crowell
20d1886a5a fix a bunch of memleaks 2015-11-01 00:47:16 -04:00
Anton Kochkov
f52d25e6f9 Fix build 2015-10-31 23:55:43 +03:00
Anton Kochkov
17a709537c Fix Cygwin build 2015-10-31 23:48:09 +03:00
pancake
0648cea3e5 Refactoring of the minidump code for portability and -1500LOC 2015-10-31 17:27:46 +01:00
pancake
a9cbb745aa Fix mdmp linkage 2015-10-31 12:05:10 +01:00
pancake
dced145038 Fix RBin.SMS warns 2015-10-31 11:59:14 +01:00
Dāvis
0494d5fce8 Add support for Windows Minidump (mdmp) files 2015-10-31 11:59:09 +01:00
Anton Kochkov
20c8b7a815 Fix the build 2015-10-31 01:31:19 +03:00
shengdi
d336072850 Initial support for SMS roms 2015-10-30 20:16:12 +01:00
pancake
f88b35afba Fixes for asm.riscv 2015-10-30 00:06:38 +01:00
qnix
09f1ea9856 Initial RISC-V support (32,64bit disasm) 2015-10-29 23:57:22 +01:00
Álvaro Felipe Melchor
5543f73cb1 Fix some covs 2015-10-29 23:39:49 +01:00
pancake
f03a2a80c8 Some more fixes for SMD and m68k 2015-10-29 14:16:30 +01:00
pancake
97233ecbae Fix #3431 - Implement support for SMD roms 2015-10-29 13:55:03 +01:00
Álvaro Felipe Melchor
7404abda73 Fix crash a84c559 by revskills 2015-10-29 12:57:06 +01:00
Álvaro Felipe Melchor
7498ddff58 Fix crash demangle in objc reported by revskills 2015-10-29 12:57:06 +01:00
pancake
4756e610d9 Add RBin.srcdir and dir.source for asm.dwarf 2015-10-29 12:37:14 +01:00
Kevin Grandemange
6dc0526b0a Do not print warning for dynamic section if we are a static bin 2015-10-29 01:59:32 +01:00
Kevin Grandemange
fd6310f108 add microblaze arch to elf 2015-10-28 10:13:18 +01:00
pancake
52cfe459a0 Enhance te command. Autocomplete and partial args working 2015-10-27 12:41:09 +01:00
xambroz
d448260816 build cleanup focused on possibility to control the lib directories with the build parameters
needed mainly for RedHat/Fedora builds
2015-10-27 03:26:45 +01:00
Álvaro Felipe Melchor
13fd1d0673 Fix omf crash 605d 2015-10-27 03:26:17 +01:00
pancake
02e719fafe Aim to fix eeaf87ece627fe94f92f836ac3467ffd @revskills dyldcache crash 2015-10-26 03:45:54 +01:00
Álvaro Felipe Melchor
6a710d6119 Fix pe crash 9288a from revskills 2015-10-25 20:14:04 +01:00
Álvaro Felipe Melchor
40ba826074 Fix pe crash bf83856 by revskills 2015-10-24 23:39:39 +02:00
pancake
17c58bdb01 Fix bf8385 PE parser crash (thx @revskills) 2015-10-24 13:24:38 +02:00
pancake
7a1b6516c1 Fix java class crash reported by @revskills (db3d80b14..) 2015-10-24 13:20:55 +02:00
Riccardo Schirone
70669bafc0 bin/bin: do not filter out non-pie binaries when using baddr 2015-10-23 10:55:13 +02:00
Álvaro Felipe Melchor
14a775f14f Fix #3509 - bin.prefix option 2015-10-22 23:36:43 +02:00
pancake
1b88200e31 Add support for 'interpreter' in RBin, ELF and MACH0 2015-10-22 02:13:26 +02:00
condret
c39f33bc77 fix a -Wunused warning 2015-10-22 00:40:29 +00:00
pancake
366ba23b30 Fix ab88f42f9b mach0 crash (reported by @revskills) 2015-10-21 23:46:41 +02:00
pancake
aaf386d023 Fix the last mach0 crash 2015-10-21 22:29:49 +02:00
pancake
5d440365af Fix 55c9c9 mach0 relocs segfault 2015-10-21 22:20:36 +02:00
Álvaro Felipe Melchor
9d5f7c44a0 Fix mach crash 45d2d1309807e95422006abb97462bc6 2015-10-21 19:35:14 +02:00
pancake
5fece33093 RBin.PE: Error -> Warning 2015-10-21 15:59:17 +02:00
pancake
45d58b78ec Fix crash regression 2015-10-21 15:33:33 +02:00
pancake
78cb412a6d Fix a null deref in some class fuzz case 2015-10-21 12:48:16 +02:00
pancake
461b714503 Fix objc heap overflow class parsing bug 2015-10-21 12:19:19 +02:00
Álvaro Felipe Melchor
748564683e Fix #3518 2015-10-20 23:52:34 +02:00
jvoisin
c4a930aeff Implement iLj 2015-10-20 14:30:52 +02:00
Riccardo Schirone
0951d51a45 core/anal: use r_bin_get_vaddr instead of raw vaddr and paddr fields 2015-10-20 00:39:19 +02:00
pancake
45c7c923af Better dtc, demangling support. Handle RABIN2_LANG, and more c++ autodetect
* r_name_filter(len:-1) strlens the string
* Show symbol names in `dtc` (calltracer)
2015-10-19 13:21:12 +02:00
pancake
1b5cd887ce Disobey rabin2 -B if bin is not pie, enhace dmm* and mach0 2015-10-19 02:41:21 +02:00
Álvaro Felipe Melchor
d4f45dd0df Fix oob in pe.c 2015-10-18 22:23:19 +02:00
Álvaro Felipe Melchor
c5d5ee70da Fix oob in mach0.c 2015-10-18 22:23:19 +02:00
Álvaro Felipe Melchor
fc5c56edd2 Fix oob in xbe 2015-10-18 22:23:18 +02:00
pancake
91dc7b96ec Fix #3497 - Fix make install for bin/d 2015-10-18 18:03:25 +02:00
Jeffrey Crowell
4d4fc1eb08 fix null deref in elf
thanks @bspar for the fuzz-a-ton
2015-10-14 20:18:59 -04:00
pancake
6e40a70a9f Show warning when cannot find w32 ordinal module dbs 2015-10-14 22:27:27 +02:00
pancake
60b60aa50a Fix #3444 - Fix infinite loop in PE parser 2015-10-12 19:42:44 +02:00
Ben Gardiner
8d4ad47210 Add bin.maxstrbuf and RABIN2_MAXSTRBUF, update manpage 2015-10-11 03:47:32 +02:00
XVilka
720341c2df Improve -fPIC handling, take 2 2015-10-09 22:24:15 +03:00
pancake
be0538a6a8 Fix some windows build warnings 2015-10-08 11:14:10 +02:00
Anton Kochkov
a8b8361a77 Do not declare enum variables in header 2015-10-07 02:05:45 +03:00
Álvaro Felipe Melchor
93a721f614 Fix #1846 - full and partial relro elf 2015-10-06 18:27:42 +02:00
Anton Kochkov
c4bf5ae8be Fix PDB compilation with TCC 2015-10-06 01:46:06 +03:00
Anton Kochkov
82eed6f2a5 More standard C and TCC fixes 2015-10-06 01:29:26 +03:00
pancake
afb96ab64e Two minor fixes for rabin2 -zzz and webui/m 2015-10-05 02:01:12 +02:00
pancake
9712a62b62 Fix #3296 - Identify main in thumb-elf bins 2015-10-03 14:16:08 +02:00
Álvaro Felipe Melchor
3423bedc1d Fix covs 2015-10-01 18:36:46 +02:00
pancake
1f165c6012 Fix some compilation warnings 2015-10-01 18:33:37 +02:00
pancake
8c445baa19 Better MBN/SBL header checks 2015-09-29 00:52:05 +02:00
pancake
5ecd98305e Add support for MBN/SBL roms, fix 11acb8392, binsect->has_strings 2015-09-29 00:42:31 +02:00
pancake
ce1087999c Fix another infinite loop in PE #3369 2015-09-28 13:06:51 +02:00
pancake
06f159239a Fix mz crash reported by @jvoisin 2015-09-28 02:52:56 +02:00
pancake
c7c0961071 Fix #3369 - omf parser crash 2015-09-28 02:32:38 +02:00
Maijin
b73fb41cfc Add mem to nes plugin 2015-09-27 17:44:10 +02:00
pancake
8f79f82048 Fix 0576be2359 2015-09-25 10:49:27 +02:00
jvoisin
3abab8526b Fix some possible NULL-deref under memory-pressure 2015-09-25 02:13:58 +02:00
jvoisin
0576be2359 Small optimizations and coverity-- 2015-09-25 01:51:29 +02:00
pancake
cd767ccaf4 Fix Android build 2015-09-24 03:36:06 +02:00
pancake
ae2713e944 Fix PE regression 2015-09-23 15:23:36 +02:00
pancake
d1f3dc3e08 Some more fixes for exports and PE 2015-09-23 15:01:36 +02:00
pancake
46f8561986 Fix rabin2 -E crash and filter in elf 2015-09-23 13:24:10 +02:00
Maijin
d298ca5dbc Initial support for NES file 2015-09-20 20:10:03 +02:00
pancake
ec0b19e5f8 Fix thumb entry assumption (thx @ret2libc) 2015-09-17 11:13:34 +02:00
Jeffrey Crowell
9f892f1eed fix some COV 2015-09-17 00:48:07 -04:00
pancake
f10c8ec075 Fix #3296 - Thumb ELF entrypoint assumption 2015-09-17 01:32:13 +02:00
pancake
ae3af810a6 Initial support for Wii/GC DOL binaries 2015-09-16 12:59:52 +02:00
pancake
b86bf19c85 Fix #3051 - Honor CFLAGS everywhere and fix some windows/android warnings 2015-09-14 20:43:11 +02:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
Riccardo Schirone
879182515d core/bin: rebase only READABLE sections 2015-09-10 23:22:26 +02:00
Riccardo Schirone
7eaf158265 bin/config: set bin.baddr to -1 as default 2015-09-10 02:00:18 +02:00
Riccardo Schirone
01f0ac9316 bin/bin: do not put zero in baddr if invalid 2015-09-10 02:00:18 +02:00
jvoisin
9db340a0a8 Fix some malloc(A*B) overflow detected by clang-analyzer 2015-09-09 21:44:06 +02:00
jvoisin
d4893718da Fix a bunch of dead assignements 2015-09-09 21:12:36 +02:00
pancake
d9c934f6b4 Fix some recent covs 2015-09-09 11:16:49 +02:00
inisisder
d2af97de2b objc_parser: refactor code related to class name allocation and etc 2015-09-08 23:49:08 +02:00
Riccardo Schirone
6a517aa66b bin/p: add CGC bin format plugin 2015-09-08 23:22:07 +02:00
Riccardo Schirone
ce14b20974 bin/format/elf: remove Elf_ prefix from static functions 2015-09-08 23:22:07 +02:00
pancake
318dc1da11 Honor Thumb vaddr in objc parser 2015-09-07 19:00:11 +02:00
pancake
868a97788e Only export has_crypto in mach0 when cryptid is set 2015-09-07 01:33:42 +02:00
pancake
fa9028f19d Remove unnecessary dwarf warning when no line-no info is found 2015-09-06 22:52:09 +02:00
jvoisin
f7e426d281 Minor fixes for the previous commit 2015-09-04 15:35:37 +02:00
jvoisin
fbe8b6d938 Once again, clang-analyzer strikes! 2015-09-04 15:12:42 +02:00
pancake
346cc8e758 Fix latest covs 2015-09-03 12:23:49 +02:00
pancake
7fcb8e081d Remove last GPL headers and move old.rarc2 into r2e 2015-09-02 16:06:57 +02:00
jvoisin
dba909b1dd Fix yet-another-batch of clang-analyzer issues 2015-09-01 23:24:11 +02:00
pancake
a5655dff9b A bit dsojson leak just to avoid a crash 2015-09-01 18:44:37 +02:00
inisisder
ed6835a976 some small refactor 2015-09-01 14:25:25 +02:00
pancake
7157cf92b7 Fix some covs 2015-09-01 11:24:09 +02:00
pancake
58d6827bbb Honor R_SYS_BITS in r2 - 2015-09-01 03:41:08 +02:00
inisisder
14760f4763 add check is it binary encrypted 2015-08-31 11:56:32 +02:00
jvoisin
b270e92021 Refactor a bit bin_pe_parse_imports 2015-08-29 23:30:16 +02:00
jvoisin
4261075d60 Misc fixes to make clang-analyser even more happy 2015-08-29 18:08:38 +02:00
Riccardo Schirone
575d3e9f0a core/bin: remove loadaddr parameter and get it from the RBinObject 2015-08-29 00:35:09 +02:00
Maijin
6831dd2f6d Revert "More misc cleanup"
This reverts commit 788a3b02c7.

	modifié :         libr/bin/format/pe/pe.c
2015-08-28 20:58:21 +02:00
jvoisin
788a3b02c7 More misc cleanup 2015-08-28 19:13:27 +02:00
jvoisin
e0e170c3c5 Fix various clang-analyser issues 2015-08-28 18:29:31 +02:00
jvoisin
98bb29c4ed Fix some clang-analyzer defects 2015-08-28 17:28:09 +02:00
pancake
1d4b0d8555 Fix some covs 2015-08-28 17:21:04 +02:00
Riccardo Schirone
def029d548 tools: always pass baddr to r_core_bin_load
radiff2: adapt to changes in baddr/laddr
bin/bin: no need to reset the baddr
2015-08-26 20:08:13 +02:00
Riccardo Schirone
2169980239 bin/p/bin_elf: fix symbols vaddr 2015-08-26 20:08:12 +02:00
Riccardo Schirone
cce105056b bin/bin: rebase paddr with loadaddr
In this way, paddr will always be the physical address of something in
the file, even if the binary is in the middle of another file.
2015-08-26 20:08:12 +02:00
Riccardo Schirone
81a8b2a3d5 fix baddr >= 0 and laddr 2015-08-26 20:07:42 +02:00
Riccardo Schirone
36d96770aa simplify baddr usage
* some style fixing
* core/bin: simplify rva function
* bin/bin: avoid passing baddr around
* bin/bin: provide methods to work with baddr
2015-08-26 19:56:51 +02:00
Riccardo Schirone
18eaf1c8c5 format/elf: fix paddr2vaddr and vaddr2paddr conversions 2015-08-26 18:30:33 +02:00
Riccardo Schirone
af20357c2a util/str: fix order of mrwx permissions/flags 2015-08-26 15:25:32 +02:00
Riccardo Schirone
eeef82c2b8 bin: use R_BIN_SCN_MAP flag when a section should be mapped by IO
- io/section: filter sections by looking at R_IO_MAP flag
- util/str: consider (m)apped flag when printing/parsing srwx info
2015-08-26 14:12:46 +02:00
condret
06076207fb add r_io-wrappers in r_bin 2015-08-24 00:31:35 +02:00
Riccardo Schirone
5663e41177 bin/format/pe: fix imports vaddr
the RVA in the PE header doesn't consider the base address, so we
have to add it in the vaddr field.
2015-08-23 23:33:00 +02:00
Riccardo Schirone
e1739384ef bin/format/pe: remove PE_ macro from static functions 2015-08-23 23:33:00 +02:00
Álvaro Felipe Melchor
45b74a7a37 Fix an oob write in mz.c 2015-08-22 19:04:22 +02:00
pancake
3f036c1070 Fix null deref in objc parser 2015-08-20 12:08:16 +02:00
pancake
0868703c9f Enhancements for ic 2015-08-19 02:23:42 +02:00
pancake
564fb069be Fix #2991 - Add support for some SPARC ELF relocs 2015-08-19 02:04:07 +02:00
pancake
2c11af3e22 Fix buffer overflow in OBJC parser 2015-08-18 14:04:31 +02:00
inisider
1f2cd1695b move property to fields 2015-08-16 19:45:14 +02:00
Riccardo Schirone
2518c9e21c core/core: add scr.promptflag variable 2015-08-11 16:03:07 +02:00
pancake
2865786e4c Add bin.classes eval var and fix rabin2 -rc output 2015-08-11 15:58:01 +02:00
pancake
a343109c68 Fix aarch64 elf reloc type 2015-08-11 09:46:28 +02:00
yetmorecode
667cdecd37 Enhanced shell output for win32 native debugging
Fixed multiple whitespace issues
Removed unnecessary include for string.h
2015-08-11 09:17:23 +02:00
pancake
1931f684a4 Detect ELBRUS ELF binaries and fix arm esil issue 2015-08-11 01:47:51 +02:00
pancake
b630d82548 Parse PLT for imports in ARM64 ELF binaries 2015-08-11 00:54:03 +02:00
inisisder
2462f2c430 fix problem with iTerm bin and remove printf 2015-08-10 13:48:48 +02:00
inisider
3b378c50ac some refactor and fix code style 2015-08-10 13:48:48 +02:00
inisisder
684606bcee fix one more segfault 2015-08-10 13:48:48 +02:00
inisisder
553e20c3d9 fix segfault and memory leaks 2015-08-10 13:48:48 +02:00
inisisder
eca3a781c0 objc class parser code refactoring 2015-08-10 13:48:47 +02:00
inisisder
d8af00ea36 add parsing of objc classes from binary 2015-08-10 13:48:47 +02:00
yetmorecode
54a59efe1d Fixed #3057 - Incorrect physical size in ELF phdr* sections 2015-08-09 13:38:51 +02:00
pancake
1c352a9dab Fix two compiler warnings in PE parser 2015-08-09 12:44:03 +02:00
shuall
0807686d86 #3052 all printf member functions changed to cb_printf 2015-08-09 03:25:05 +02:00
pancake
26dd53e8f4 Add support for RPI2 PE Windows executables 2015-08-09 02:13:47 +02:00
Álvaro Felipe Melchor
e764e8befa Fix regression mach0 relocs 2015-08-08 19:43:11 +02:00
pancake
4d672d9ecc mach0: two wrong switch indents, oob read in memcmp and useless warns 2015-08-08 19:04:07 +02:00
Álvaro Felipe Melchor
cf4b673d12 Fix #3047 & #3048 - oob write 2015-08-07 21:16:17 +02:00
Álvaro Felipe Melchor
a37fdb3dec Fix #3045 - oob write 2015-08-07 21:16:09 +02:00
Sam
4a0996566c Fixed small spelling error. 2015-08-05 12:52:20 -04:00
Álvaro Felipe Melchor
b517bc21a2 Fix #3026 - heap use after free 2015-08-04 18:58:24 +02:00
pancake
04e128ab92 Fix some covs 2015-07-25 09:58:11 +02:00
pancake
40842b0e96 Fix some clang build issues 2015-07-25 01:54:07 +02:00
Álvaro Felipe Melchor
050c2fe9f8 Fix some COVS 2015-07-25 01:26:54 +02:00
pancake
c4eb96c9ac Fix r_bin_filter_names() to support dupped vaddr+name entries 2015-07-24 18:48:14 +02:00
pancake
6ae0417278 Updsate SDB to optimize dupped symbol checks in mach0 parser 2015-07-24 13:24:32 +02:00
David Kreuter
fecb914de8 CID 1216466 Dereference before null check /libr/bin/p/bin_dex.c 2015-07-15 00:39:07 +02:00
jvoisin
aa695bc808 Fix misc compilation warnings on Windows 2015-07-14 13:55:58 +02:00
pancake
bdfbc4f076 Fix several COVs, and build issues related to appveyour 2015-07-13 11:21:21 +02:00
Jonathan Neuschäfer
ecf6792318 Fix #2927 and random code cleanups
- asm_dcpu16: remove an obsolete comment
  It was obsoleted in 5285d1bdea.
- Indentation fixes
- fix a few typos
- remove "#define NEW_ESIL"
- move comment about r_bin_filter_name to the right place
- README.md: Add V810 to the list of supported architectures
- Also, de-duplicate LH5801
- Add attribution to randomart.c, fixes #2927
2015-07-12 19:20:36 +02:00
Jonathan Neuschäfer
523aa3af5c add .version to all plugins 2015-07-12 19:05:33 +02:00
inisider
1c437eb310 fix valgring issues for file GameLogic.pdb 2015-07-11 12:38:49 -04:00
pancake
a04ead741a Enhace the ARM Thumb pseudo disassemble 2015-07-09 02:00:16 +02:00
pancake
6587c7afab Fix overlapped constant pool region in dex 2015-07-09 01:38:43 +02:00
pancake
7a937e46e1 Fix warns and a cov in arm64 2015-07-08 17:06:55 +02:00
pancake
38defdce3b Fix dex parser segfault and binclass output 2015-07-06 02:50:36 +02:00
pancake
d054008b17 Implement class methods for DEX and make icj 2015-07-06 02:38:54 +02:00
pancake
c10bcdfbea bin.filter class names and hashify raw bytes in name 2015-07-06 00:58:51 +02:00
pancake
c6daf8549f Fix listing classes for DEX binaries 2015-07-06 00:05:03 +02:00
Álvaro Felipe Melchor
9dd078dfa5 Fix #2883 2015-07-05 20:44:03 +02:00
pancake
f622ba9f37 Partly fix the symtab parsing in mach0, postponed after dysymtab 2015-07-05 19:36:47 +02:00
pancake
6ed4d5a94b Comment the mach0's symtab parser, rabin2 -u and more 2015-07-05 03:25:20 +02:00
pancake
3d1532c4d9 Is ok to have dupped imports 2015-07-05 00:41:06 +02:00
pancake
cfb8de7c4d Fix DEX entrypoint address to section.code 2015-07-05 00:11:42 +02:00
pancake
cdf56a63f8 Add bin.filter=true config var to avoid dupped symbols and imports 2015-07-04 23:42:48 +02:00
pancake
45a83dc38a Detect Rust binaries in RBinLang for name demangling 2015-06-29 11:22:05 +02:00
Álvaro Felipe Melchor
daf8e5b06f Fix some infers 2015-06-28 20:15:35 +02:00
Álvaro Felipe Melchor
ccef928dfe Fix some COVs 2015-06-28 20:15:35 +02:00
Jeffrey Crowell
be0c7cf457 fix crash on r2 -d empty_file
closes #2846
2015-06-27 11:49:39 -04:00
pancake
feef3cd7f7 Skip corrupted sub-bin in fatmach0's 2015-06-25 01:59:31 +02:00
pancake
83e9a155fd Be more permissive with corrupted mach0 files 2015-06-25 01:44:22 +02:00
skuater
2a8164515e fix buffer overflow in pe.c 2015-06-23 10:29:36 +02:00
pancake
1e4638d27e Add -D <lang> all to demangle symbols via rabin2 2015-06-22 11:36:28 +02:00
SkUaTeR
3879017027 Update pe.c 2015-06-21 10:37:14 -04:00
pancake
8f25a9b344 Fix iOS build, crashes in reflines, analysis issues on OSX debugger and more! 2015-06-21 00:50:53 +02:00
Álvaro Felipe Melchor
1c7feb2240 Fix some infers 2015-06-20 17:33:09 +02:00
pancake
1f21a2dae1 Remove unnecessary warning in PE 2015-06-20 17:30:23 +02:00
skuater
142bf2172f fix export issue in windows pe format 2015-06-20 00:05:57 +02:00
pancake
b10aa5a0a2 Initial support for loading Android ART binaries 2015-06-17 11:14:41 +02:00
Álvaro Felipe Melchor
53badd517d Fix COVs 2015-06-17 00:22:40 +02:00
Oleksii Kuchma
0c57a435fc Rewrite MZ bin plugin
* Add const modifiers, fix function call style
* Add checking and using dos_file_size
* Fix number of arguments in load_bytes.
* Add check for NE, LE and LX executables.
* Fix function declaration for btree_traverse.
2015-06-08 22:18:21 +02:00
Álvaro Felipe Melchor
78d5a78609 Fix COVS 2015-06-04 21:27:41 +02:00
Álvaro Felipe Melchor
7c2fd089f3 Fix #2706 & #2705 2015-06-04 13:14:43 +02:00
Álvaro Felipe Melchor
008158f705 Fix #2684 2015-06-04 11:38:51 +02:00
pancake
c0b1e5fad3 Fix iOS build 2015-06-04 04:30:48 +02:00
Álvaro Felipe Melchor
fddb32ccd7 Fix #2683 2015-06-03 12:28:19 +02:00
Álvaro Felipe Melchor
7f467e0162 Fix #2665 2015-06-01 23:19:49 +02:00
jvoisin
7c096bb1f4 Fix various coverity issues 2015-06-01 21:10:37 +02:00
Álvaro Felipe Melchor
2f23527217 Fix relocations in mach 2015-05-29 17:58:36 +02:00
pancake
e19810e875 Fix #2642 - rabin2 -Aj and r2 -ciAj - JSON output for sub-bins 2015-05-29 01:38:31 +02:00
pancake
22c9b3f0fe Fix #2628 flags offset hashtable issue and Fix #2607 ELF relocs 2015-05-29 00:51:57 +02:00
ampotos
ea8107ed2f Fix #2633 #2632 #2631 #2630
also fix a litle bug in section name
2015-05-28 11:25:52 +02:00
pancake
f8384feb6b Initial disassembler support for HP PA-RISC (from GNU binutils) 2015-05-28 11:24:31 +02:00
pancake
4ce609b589 Some llx -> PFMT64x 2015-05-28 11:05:52 +02:00
ampotos
313a4f7fca Fix all problem on remaining in the omf loader except the baddr of the
entry point (because the baddr display is compute with vaddr - paddr
and this value if incorrect for omf file)
2015-05-26 17:55:24 +02:00
inisider
c9d5d00a55 add env vars 2015-05-26 02:39:50 +02:00
inisider
6536e6cb28 start of implementation of issue #1909 2015-05-26 02:39:50 +02:00
Álvaro Felipe Melchor
bc271a6691 Fix #2604 2015-05-23 19:07:40 +02:00
Jeffrey Crowell
1fab1e2338 fix relocation on amd64 elf
closes #2607
2015-05-23 10:37:19 -04:00
pancake
e26f86d654 Fix null deref issue in last mach0 commit 2015-05-23 11:43:32 +02:00
pancake
d727cebfbf Add Rust,Swift,C++14,.. dwarf detection and fix omf warning 2015-05-23 11:03:20 +02:00
pancake
2353737e17 Fix #2602 - Detect Canary and Go in MACH0 binaries 2015-05-23 10:55:44 +02:00
ampotos
b764fb8d93 Fix syntax rules
Fix potential segfault when a malformed omf file is loaded
(malformed omf are going to be pr on radare2-regression)
2015-05-23 10:12:56 +02:00
inisider
6cada06604 fix some bugs according to added testsuite 2015-05-23 10:08:27 +02:00
pancake
d59de8f570 Fix indentation in OMF plugin (-111 LOC) 2015-05-22 13:23:26 +02:00
ampotos
44fd8b2555 omf loader is working but in 32bits omf file the vaddr take the value of the paddr in sections and for both 16 adn 32 bits file vaddr is take as offset to pd command instead of paddr (or i misunderstand how it suppose to work) 2015-05-22 12:47:19 +02:00
Álvaro Felipe Melchor
c771185bad Fix CID 1296157 2015-05-22 12:46:15 +02:00
Álvaro Felipe Melchor
d40b0d122c Fix allocation with negative length 2015-05-20 18:16:25 +02:00
Álvaro Felipe Melchor
27a4f49b9f Fix an issue in mach parse. 2015-05-20 13:25:49 +02:00
Álvaro Felipe Melchor
57fb89d9fd Fix #2592 2015-05-20 00:10:29 +02:00
pancake
a168075c35 Fix for ASLR ELF entrypoint 2015-05-19 10:58:40 +02:00
Álvaro Felipe Melchor
a3086c23e8 Fix an issue with mach parser in dyld_info 2015-05-17 00:39:22 +02:00
Álvaro Felipe Melchor
43e6e451f2 Fix #2579 2015-05-15 19:19:20 +02:00
Álvaro Felipe Melchor
85f597dfb9 Fix #2575 2015-05-15 15:51:13 +02:00
Álvaro Felipe Melchor
e16931039a Fix #2576 2015-05-15 14:47:01 +02:00
pancake
24b231b152 Some work towards #2566 - warn/err messages to stderr 2015-05-14 13:30:25 +02:00
pancake
ba4d3e8733 Fix #2555 - Invalid read in r_bin_dwarf_parse_lnp_header 2015-05-13 00:40:33 +02:00
inisider
9ae34bfceb Fix bug #2558 and add more comments 2015-05-12 22:12:49 +02:00
pancake
e391645137 Bump sdb with lot of bugfixes 2015-05-12 01:53:47 +02:00
pancake
a295e9a6d5 Enforce DEX null checks and fix fuzz regressions 2015-05-11 20:21:08 +02:00
pancake
c687641b17 Fix rbin regression by fixing compiler warnings 2015-05-11 20:04:00 +02:00
pancake
4dcfdd69cd Fix #2525 - ASAN crash in dwarf parser 2015-05-11 18:40:03 +02:00
pancake
4ced532d69 Tons of fixes and cleanups to make the java tests happy 2015-05-11 18:23:38 +02:00
Jeff Muizelaar
126f92b650 Fix #2532 - PDB parsing 2015-05-10 00:14:09 +02:00
Alvaro Felipe
41170b9f8a Fix #2524 2015-05-09 10:42:53 +02:00
Álvaro Felipe Melchor
85b04c0160 Fix #2526 2015-05-08 15:30:20 +02:00
pancake
53cad19e1b Fix id053 fuzzed DEX crash 2015-05-07 02:17:08 +02:00
pancake
3cfde4b34e Fix #2502 - Fix crash in mach0 parser 2015-05-07 01:54:24 +02:00
pancake
8fe503a0aa Fix #2510 - Fix another dwarf crash in oob reads 2015-05-07 01:47:54 +02:00
pancake
d6bb826327 Fix #2509 - crash in dwarf parser 2015-05-07 01:20:33 +02:00
pancake
7c4db8fd75 Fix import symbol size in mach0 2015-05-06 15:36:51 +02:00
pancake
b4a11cb3cf Fix main symbol align for thumb 2015-05-06 02:42:35 +02:00
Álvaro Felipe Melchor
a5b57a2882 Fix #2490 2015-05-06 00:39:38 +02:00
pancake
1bdf7430a8 Handle thumb on MACH0 binaries in a better way + tests 2015-05-05 11:44:00 +02:00
pancake
32118ad64f Fix #2489 - Fix PE32 imports OOM 2015-05-04 12:01:56 +02:00
Álvaro Felipe Melchor
3b04c5442b Added checks in mach parser & fix #2465 2015-05-04 09:52:00 +02:00
pancake
d52490f9f4 Fix noisy warning 2015-04-30 23:43:35 +02:00
Álvaro Felipe Melchor
d9b1b341a7 Fix #2455 2015-04-30 18:49:50 +02:00
pancake
fc6c788914 Huge speedup loading ELF bins with lot of symbols (1m30s vs 3s) 2015-04-30 16:55:30 +02:00
pancake
6ddb335b6c Fix another ASAN issue in PE 2015-04-30 01:43:35 +02:00
pancake
79b4820eaf Fix #2455 - several ASAN crashes in the PE parser 2015-04-30 01:33:52 +02:00
pancake
faf91d35ab Fix #2465 - Fix crash in mach0 parser 2015-04-30 00:17:42 +02:00
pancake
64103c815c Fix #2466 - Several crashes in XBE loader 2015-04-29 23:40:05 +02:00
pancake
f9300f4ba5 Fix pebble initialization warnings 2015-04-29 11:33:33 +02:00
pancake
40de063d3f Fix some ELF/Dwarf memleaks reported by Coverity 2015-04-29 10:26:31 +02:00
pancake
1c33214519 Fix #2457 - Fix crash in dwarf parser (-30LOC) 2015-04-29 09:54:26 +02:00
pancake
8345811ccf Fix 'bin_strings buffer is too big' issue 2015-04-29 01:34:04 +02:00
Álvaro Felipe Melchor
ca308085e7 Added checks in elf.c and mach0.c 2015-04-29 01:25:32 +02:00
Jeffrey Crowell
5b4a4b7be0 pass the correct length in pe handling. fix build 2015-04-27 23:58:29 -04:00
pancake
876ac121b4 Fix #2451 - ASAN crash in PE parser 2015-04-28 00:31:51 +02:00
pancake
4fb6fa5a15 Fix #2452 several dwarf crashes - thanks @revskills 2015-04-28 00:14:11 +02:00
pancake
3d78af8988 Add support for ARMv7K mach0 binaries (Hello iWatch!) 2015-04-26 23:19:59 +02:00
Álvaro Felipe Melchor
72b30d01b9 CID 1295060
CID 12950549-52
2015-04-26 22:40:42 +02:00
pancake
780214dc4c Fix all zzufed PE bins crashes 2015-04-26 02:25:43 +02:00
pancake
c2a0949e0e Fix #2437 - Fix invalid Pebble app header crash 2015-04-25 04:12:55 +02:00
pancake
e7f3631457 Fix baddr regression 2015-04-24 02:23:23 +02:00
Álvaro Felipe Melchor
4532401066 Enhanced elf bin 2015-04-24 01:08:53 +02:00
pancake
e5b4fc7679 Fix deadcode in elf 2015-04-23 02:25:53 +02:00
Anton Kochkov
49c293871f Fix CID 1288755 and 1288758 2015-04-23 01:40:13 +03:00
pancake
59dcfae4d6 Add support for Blackfin machines in the ELF parser 2015-04-22 15:36:34 +02:00
Álvaro Felipe Melchor
a208cd56e6 Fix #1627 2015-04-22 15:22:24 +02:00
Anton Kochkov
8815ceac41 Fix Clang build 2015-04-21 07:00:17 +03:00
pancake
070836b326 Honor SIGSTOP without breaking ^Z 2015-04-20 01:05:22 +02:00
Anton Kochkov
eef9cd0b95 Fix TE pf parsing 2015-04-19 23:37:59 +03:00
Anton Kochkov
0ca9630806 Add TE header pf parsing 2015-04-19 14:29:55 +03:00
Anton Kochkov
7e79b198b1 Fix some more Coverity issues
Fix CID 1171365
Fix CID 1211169
Fix CID 1230038
Fix CID 1295063, 1295062, 1295061
Fix CID 1295070
Fix CID 1295068
Fix CID 12950067
2015-04-19 04:53:08 +03:00
Anton Kochkov
1479aeca8e Fix a few Coverity issues
Fix CID 1205204
Fix CID 1171365
Fix CID 1135001
Fix CID 1134921
Fix CID 1134848
Fix CID 1134840
Fix CID 1134824
Fix CID 1267983
Fix CID 1230038
2015-04-19 03:15:29 +03:00
pancake
9a94698bd4 Fix #2382 - fix ragg2 crash and pe memleak 2015-04-16 17:24:26 +02:00
pancake
5187d37c13 Fix latest covs 2015-04-15 12:13:50 +02:00
pancake
c7a4b978d1 Fix w32 build 2015-04-15 02:16:18 +02:00
AntonDevil
8737ad2b65 Implementing version info parse 2015-04-15 01:44:17 +02:00
pancake
997dda6e5b Add support for iOS-simulator and static-OSX builds 2015-04-14 17:14:43 +02:00
pancake
a975876015 Fix OOB read issue in PE. Partial fix 2015-04-13 12:24:51 +02:00
pancake
2aecde26d2 Tons of free candy. See details below:
- Fix arm-thumb ESIL for the SUB instruction
- Handle Java imports as symbols in code analysis
- Invoke Java instructions reference the imports now
- Fix 71 crashes reported by jn
- Affected bin modules: elf, mach0, java, te, pe, dex
2015-04-13 00:57:32 +02:00
pancake
f9d6ff2f2b Fix some travis warnings 2015-04-12 18:00:40 +02:00
pancake
acd5e4b999 Fix dalvik<->dex class and method name resolutions 2015-04-12 05:13:51 +02:00
jvoisin
882a43994c Two simple coverifix 2015-04-11 21:07:12 +02:00
Anton Kochkov
2e8363fdb6 Fix more leaks 2015-04-11 13:46:33 +03:00
pancake
f8d3e50b57 Some aesthethic changes for REIL 2015-04-11 05:18:00 +02:00
pancake
3a214bcfdb Another fix for DEX 2015-04-11 05:04:51 +02:00
pancake
882a0ee164 Add --without-fork and r_sys_fork() 2015-04-11 05:00:05 +02:00
pancake
6ab06a15ba Various fixes for DEX and Dalvik support 2015-04-11 04:33:37 +02:00
Anton Kochkov
1a481ca473 Fix possible segfault in ELF parsing 2015-04-11 02:14:13 +03:00
Anton Kochkov
5a0bde5a01 Coverity fixes 2015-04-11 01:29:28 +03:00
pancake
80a1371586 Remove newline in the PE compiled timestamp field 2015-04-09 22:33:46 +02:00
pancake
2c161adda9 Increase symbol table size for MACH0 2015-04-09 17:55:40 +02:00
ninjahacker
e9cafe8df7 Fixed PE Segfault 2015-04-08 23:04:39 +02:00
condret
375427cb8c fix 2 warnings, low hanging tits 2015-04-08 13:20:26 +02:00
pancake
2cb6afd48b Fix crash in bin_fs reported by jn 2015-04-08 01:31:39 +02:00
pancake
f1f068f68e Fix #2321 - ELF segfault in strings 2015-04-07 17:12:41 +02:00
pancake
a0ef11be00 Fix 3 covs and several warnings in windbg for w32 2015-04-07 14:53:28 +02:00
ninjahacker
d1351cf836 Added initial zimg support 2015-04-06 22:31:06 -04:00
pancake
0b04317bdb Sdb memoization in RBin speedups DEX loading
Avoid some memdupping in the dex parser - needs more work
2015-04-06 00:59:55 +02:00
pancake
1687ed552a Fix segfault in rabin2 -c mach0 2015-04-04 12:45:31 +02:00
pancake
0e6c60fd4f Implement mach0 symtab parser 2015-04-04 01:54:46 +02:00
pancake
3b4773d602 Add time.zone and time.fmt eval vars, honor zone in pt and correct PE gmt 2015-04-03 23:24:09 +02:00
pancake
fab078d7a3 Support main in linux64 PIE bins 2015-04-03 18:10:43 +02:00
pancake
87162dc8bf Add wta support for appending dump. 2015-04-03 04:11:26 +02:00
Jeffrey Crowell
29d583df60 fix some warnings 2015-04-01 21:10:49 -04:00