37 Commits

Author SHA1 Message Date
Pat Tullmann
0cb742dafb binfmt-detector-cli: rewrite to support PE32+ binaries (#38)
Rewrite with hard-coded offsets into the PE file format to discern
if a binary is PE32 or PE32+, and then to determine if it contains
a "CLR Data Directory" entry that looks valid.

Tested with PE32 and PE32+ compiled Mono binaries, PE32 and PE32+ native
binaries, and a random assortment of garbage files.

Former-commit-id: 9e7ac86ec84f653a2f79b87183efd5b0ebda001b
2023-10-16 20:16:47 +02:00
Xamarin Public Jenkins (auto-signing)
0b380204a4 Imported Upstream version 6.12.0.86
Former-commit-id: 7a84ce7d08c42c458ac8e74b27186ca863315d79
2020-07-10 08:44:59 +00:00
Xamarin Public Jenkins (auto-signing)
468663ddbb Imported Upstream version 6.10.0.49
Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
2020-01-16 16:38:04 +00:00
Xamarin Public Jenkins (auto-signing)
73ee7591e8 Imported Upstream version 6.8.0.73
Former-commit-id: d18deab1b47cfd3ad8cba82b3f37d00eec2170af
2019-12-10 18:00:56 +00:00
Xamarin Public Jenkins (auto-signing)
95fdb59ea6 Imported Upstream version 6.6.0.89
Former-commit-id: b39a328747c2f3414dc52e009fb6f0aa80ca2492
2019-09-24 08:53:40 +00:00
Xamarin Public Jenkins (auto-signing)
62bebfff73 Imported Upstream version 6.4.0.163
Former-commit-id: 514fcbca0069f87e623d780a8ba702ac3c20c327
2019-08-10 08:39:31 +00:00
Xamarin Public Jenkins (auto-signing)
345224e2bc Imported Upstream version 6.4.0.150
Former-commit-id: 2cf3acd45014a53dda66c13f7378a88695d3c93e
2019-08-02 08:37:10 +00:00
Xamarin Public Jenkins (auto-signing)
ef583813eb Imported Upstream version 6.4.0.137
Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
2019-07-26 19:53:28 +00:00
Xamarin Public Jenkins (auto-signing)
2ba231cd0c Imported Upstream version 6.0.0.271
Former-commit-id: 2fde65daab17ed3bb08a7be86fb05423d63b0290
2019-05-29 08:54:19 +00:00
Xamarin Public Jenkins (auto-signing)
65ce5c75f1 Imported Upstream version 6.0.0.246
Former-commit-id: 241b0eee0d9f22ae63312d981dd04646ce8514ed
2019-05-18 08:35:58 +00:00
Xamarin Public Jenkins (auto-signing)
7aefecd37c Imported Upstream version 6.0.0.176
Former-commit-id: 832f8d999f57cff48d1880b97be189dfed6c9dc2
2019-04-13 08:31:55 +00:00
Xamarin Public Jenkins (auto-signing)
64ac736ec5 Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
2019-04-12 14:10:50 +00:00
Xamarin Public Jenkins (auto-signing)
f737def5f5 Imported Upstream version 5.20.0.185
Former-commit-id: fcd643a64a9c5470917dbbb1be4ba228e5c14650
2019-02-06 08:26:08 +00:00
Xamarin Public Jenkins (auto-signing)
0510252385 Imported Upstream version 5.20.0.180
Former-commit-id: ff953ca879339fe1e1211f7220f563e1342e66cb
2019-02-04 20:11:37 +00:00
Xamarin Public Jenkins (auto-signing)
32d52ae4ca Imported Upstream version 5.18.0.223
Former-commit-id: 9eba2bb75f91b7cb7f76436c5ff4d4ff3be9a078
2018-12-20 09:08:44 +00:00
Xamarin Public Jenkins (auto-signing)
c7eefea598 Imported Upstream version 5.18.0.219
Former-commit-id: ecd6dc938c7cb62e4fff91d13ce1f213c937ba05
2018-12-05 08:23:16 +00:00
Xamarin Public Jenkins (auto-signing)
0abdbe5a7d Imported Upstream version 5.18.0.142
Former-commit-id: 7467d4b717762eeaf652d77f1486dd11ffb1ff1f
2018-10-09 08:20:59 +00:00
Xamarin Public Jenkins (auto-signing)
14c2d0c196 Imported Upstream version 5.16.0.112
Former-commit-id: 6cc2610f66eef3edea492b48d5312acef686f417
2018-08-16 08:23:32 +00:00
Xamarin Public Jenkins (auto-signing)
7d7f676260 Imported Upstream version 5.16.0.100
Former-commit-id: 38faa55fb9669e35e7d8448b15c25dc447f25767
2018-08-07 15:19:03 +00:00
Xamarin Public Jenkins (auto-signing)
413682e1ba Imported Upstream version 5.14.0.125
Former-commit-id: 436f655dff8d8f7c7b0eb3cb3c65e14ccf98b295
2018-06-07 18:52:37 +00:00
Xamarin Public Jenkins (auto-signing)
19234507ba Imported Upstream version 5.14.0.78
Former-commit-id: 3494343bcc9ddb42b36b82dd9ae7b69e85e0229f
2018-05-10 08:37:03 +00:00
Xamarin Public Jenkins (auto-signing)
8fc30896db Imported Upstream version 5.12.0.220
Former-commit-id: c477e03582759447177c6d4bf412cd2355aad476
2018-04-24 09:31:23 +00:00
Xamarin Public Jenkins (auto-signing)
e2950ec768 Imported Upstream version 5.10.0.69
Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
2018-01-29 19:03:06 +00:00
Xamarin Public Jenkins (auto-signing)
e46a49ecf1 Imported Upstream version 5.10.0.47
Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
2018-01-24 17:04:36 +00:00
Xamarin Public Jenkins (auto-signing)
7d05485754 Imported Upstream version 5.8.0.22
Former-commit-id: df344e34b07851d296efb3e6604c8db42b6f7aa3
2017-10-19 20:04:20 +00:00
Xamarin Public Jenkins (auto-signing)
536cd135cc Imported Upstream version 5.4.0.167
Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
2017-08-21 15:34:15 +00:00
Xamarin Public Jenkins (auto-signing)
966bba02bb Imported Upstream version 5.2.0.175
Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
2017-06-07 13:16:24 +00:00
Xamarin Public Jenkins (auto-signing)
67a5eefa39 Imported Upstream version 5.0.0.94
Former-commit-id: 09772966aff74491c7b98b6eda49852cfc4aa874
2017-05-03 16:24:32 +00:00
Xamarin Public Jenkins (auto-signing)
6bdd276d05 Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
2017-04-10 11:41:01 +00:00
Xamarin Public Jenkins (auto-signing)
e5cd25ff4f Imported Upstream version 4.8.0.459
Former-commit-id: 2a5b9df2014f72665850c7f885e7aed54704a53a
2017-01-19 14:22:10 +00:00
Xamarin Public Jenkins (auto-signing)
2927bc3cc3 Imported Upstream version 4.8.0.425
Former-commit-id: 56934f10a9ad11e3eb75c21da859e02f54766140
2017-01-09 11:04:53 +00:00
Xamarin Public Jenkins (auto-signing)
069517201b Imported Upstream version 4.8.0.371
Former-commit-id: 1cedda3b6a8e480191a7a40a8dc33eb078fba58b
2016-11-28 21:01:12 +00:00
Xamarin Public Jenkins (auto-signing)
94b2861243 Imported Upstream version 4.8.0.309
Former-commit-id: 5f9c6ae75f295e057a7d2971f3a6df4656fa8850
2016-11-10 13:04:39 +00:00
Xamarin Public Jenkins (auto-signing)
3cc9601fd9 Imported Upstream version 4.6.0.243
Former-commit-id: ff34202749e8df2aa83f2578b16260b444f50987
2016-09-09 07:19:48 +00:00
Xamarin Public Jenkins (auto-signing)
804b15604f Imported Upstream version 4.6.0.182
Former-commit-id: 439c182e520038bf50777ca2fe684f216ae28552
2016-09-01 10:46:18 +00:00
Xamarin Public Jenkins (auto-signing)
b95516a3dd Imported Upstream version 4.6.0.150
Former-commit-id: 73e3bb1e96dd09dc931c1dfe559d2c7f7b8b02c7
2016-08-23 13:20:38 +00:00
Xamarin Public Jenkins (auto-signing)
e79aa3c0ed Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
2016-08-03 10:59:49 +00:00