244 Commits

Author SHA1 Message Date
pancake
cb1c36371a Fix #6914 - oobread in PE 2017-03-09 22:20:04 +01:00
SkUaTeR
2f72e83338 Add more main detections for windows (#6952) 2017-03-08 23:21:05 +01:00
Giovanni
5d669ed2f8 Improvement of iI for PE with signatures + refactoring (#6930)
* Improvement of iI for PE with signatures + refactoring
2017-03-07 15:54:22 +01:00
xarkes
4d7767883b Added PE overlay flag to r2 -nn and in iI (#6926) 2017-03-06 12:00:44 +01:00
Giovanni
fd38170338 Refactoring CMS/PKCS#7 and better use of the memory
Refactoring CMS/PKCS#7 and better use of the memory
2017-03-02 16:10:32 +01:00
Maijin
1ec9e7d104 Add Visual-C winmain #832 2017-02-25 15:35:56 +01:00
alvarofe
821c6f2ab1 Use sdb_ht API in pe.c instead of r_str_ht 2017-02-24 23:42:17 +01:00
Giovanni
1f64c47c05 Add ASN1, X.509 and PKCS parsers (+ iC for PE) 2017-02-18 00:07:01 +01:00
William D. Jones
2603cbf310 Improve Windows search path for sdb (#6802)
* Add r_sys_get_src_dir_w32 function
* Fix Windows search path for sdbs in pe.c and cbin.c
2017-02-17 04:31:20 +01:00
pancake
bb5017a135 Fix another regression in PE 2017-02-15 13:03:27 +01:00
pancake
94d7e94ecf Fixes for corkami 2017-02-15 12:17:25 +01:00
Aneesh Dogra
00ca644faf .NET support in R2 (#6771)
* Add CLR header structure.
* Add metadata header
* Complete metadata header parsing. Next todo: metadata streams.
* Parse metadata streams. TODO: Parsing the actual metadata.
2017-02-14 15:24:11 +01:00
SkUaTeR
a7154b1871 improved msvcseh pattern find (#6605) 2017-01-29 14:08:47 +01:00
SkUaTeR
83eff04451 add pattern to get winmain from MSVC compiler with SEH (#6592) 2017-01-28 10:23:31 +01:00
pancake
4e2cd40ed6 Implement bin.verbose for ELF, PE and MACH0 2017-01-22 01:50:41 +01:00
pancake
ec46f08995 Fix div by zero when loading PE with SectionAlignment = 0 2017-01-05 23:26:45 +01:00
Álvaro Felipe Melchor
023f4c5bb4 Refix #6353 2016-12-24 12:32:29 +01:00
Antonio Davide
66183063d4 Fix #6353 - PE: Fixed section alignment calculation 2016-12-22 12:49:14 +01:00
Álvaro Felipe Melchor
e3b5059046 add proper define for ARM PE 2016-12-12 23:03:47 +01:00
pancake
d0f7c56aa3 Add support for ARM64 PE binaries 2016-12-12 22:39:10 +01:00
Álvaro Felipe Melchor
db0f4da4ff remove some fp entry points coming from TLS 2016-12-04 23:55:14 +01:00
Álvaro Felipe Melchor
fd7be23ab9 some fix to parse messed up pe's binaries
* Loosen up the constraints with number of sections

* Set value in ImageBase if zero. The ideal solution would be to pick up a
  value from user through bin.baddr but it's needed an API change
2016-11-14 23:19:13 +01:00
Marc
c4428f088d Haddr entrypoints for ELF, PE and mach0 (#6167) 2016-11-13 23:34:45 +01:00
Álvaro Felipe Melchor
3222447eab Fix warnings when compiling in linux 2016-11-08 01:58:07 +01:00
Álvaro Felipe Melchor
195d1da7e1 fix integer overflow pe.c 2016-11-06 23:10:17 +01:00
Álvaro Felipe Melchor
302d3f52e9 Take into account section alignment 2016-11-06 22:00:08 +01:00
pancake
8db20a28f7 Fix integer overflow and oobread for PE 2016-11-03 13:15:54 +01:00
Álvaro Felipe Melchor
45f193bb6a Fix ELF support for 32-64bit relro relocations, fix negative allocation in PE and null deref 2016-10-11 14:32:35 +02:00
Álvaro Felipe Melchor
6a9fce1dc0 removed limit number of exports 2016-10-06 01:12:26 +02:00
Álvaro Felipe Melchor
bd544b5ee3 Added check for section size in bin_pe.c 2016-10-02 12:51:32 +02:00
Álvaro Felipe Melchor
7ea11a38c5 remove check in check_sections pe.c 2016-09-07 20:08:57 +02:00
Álvaro Felipe Melchor
89de312a06 fix coding style in pe.c 2016-09-07 20:08:54 +02:00
pancake
bf63107f9a Fix uninitialized entry field for MZ bins (jman issue) 2016-08-08 10:45:32 +02:00
Jeffrey Crowell
73bddffbf0 /libr/bin/format/pe/pe.c fix off by one in strcpy 2016-07-01 00:57:38 -04:00
Anton Kochkov
33ec5b9865 Fix coverities
CID 1357120
CID 1357121
CID 1357112
CID 1357099
2016-06-30 22:11:09 +03:00
Álvaro Felipe Melchor
5a582d3a13 Fix oob in debug_info pe.c 2016-06-26 22:29:43 +02:00
pancake
badad8ffef Fix oobread in PE with 004e_00007fff4a3d9a9e_000000000b47b000.inp 2016-06-25 20:36:25 +02:00
Álvaro Felipe Melchor
d65889d15d add name to section when is empty 2016-06-22 23:51:33 +02:00
Álvaro Felipe Melchor
42e507ebfa comment out hackaround for huge number of sections 2016-06-22 23:51:31 +02:00
Álvaro Felipe Melchor
8e6b857cdf more work in PE loader 2016-06-22 23:51:27 +02:00
Álvaro Felipe Melchor
93105250ab Handle bad PE files 2016-06-19 00:19:03 +02:00
Álvaro Felipe Melchor
fa15260d21 some refactoring in pe format code (#5039) 2016-05-31 12:16:57 +02:00
Álvaro Felipe Melchor
e805d701db Fix #4649 2016-05-02 18:24:34 +02:00
pancake
910ec5d000 Fix conditional warning regression in format.pe 2016-04-11 13:14:35 +02:00
pancake
5ef2b3cc0f Fix many warnings 2016-04-11 12:22:15 +02:00
Álvaro Felipe Melchor
2f9229af43 fixed pe version info 2016-04-10 21:25:56 +02:00
Álvaro Felipe Melchor
8cd86c367e Fix oob read in pe 2016-04-10 18:43:32 +02:00
skuater
917bd004cc r_bin_per_import fixed for tiny files 2016-04-09 19:54:12 +02:00
Álvaro Felipe Melchor
8009d35f13 Fix #4576 - thx revskills 2016-04-09 17:07:20 +02:00
Adrien Garin
10de21de7e RBin: fix PE and ELF versioninfo
PE parser is now able to get the StringTable value even if the
wValueLength of the structure is incorrect.

Fix a regression with ELF versioninfo.
2016-03-18 18:35:05 +01:00