72 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)
1138ddc68f Imported Upstream version 6.12.0.179
Former-commit-id: 0e3e22291208d34e6731637d718f4d12cca50e9e
2022-05-16 16:00:00 +00: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)
665300eaa7 Imported Upstream version 6.8.0.80
Former-commit-id: 6c79e92bc868a64c146c9562ab817ef0ea9053a4
2019-12-19 08:39:53 +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)
e4f7c9bcf1 Imported Upstream version 6.4.0.198
Former-commit-id: f50ce77ce335da6ab5b5bf46a0e6a38aa599ee47
2019-09-19 08:43:50 +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)
76c6505a64 Imported Upstream version 6.0.0.293
Former-commit-id: c73c6d59ea27405c8ec2975fc933d2a9a447e603
2019-06-08 08:45:03 +00:00
Xamarin Public Jenkins (auto-signing)
b8f7d9129e Imported Upstream version 6.0.0.190
Former-commit-id: e193e16b440728be216d156a01a02450e7882323
2019-04-22 22:18:01 +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)
8016999e4d Imported Upstream version 5.20.1.22
Former-commit-id: 36cfe74fb4a92849aef0326046186dffbc1d4d0e
2019-04-12 08:23:39 +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)
aab600f1da Imported Upstream version 5.18.0.208
Former-commit-id: 67532bb259617bd753166c9334544379a8e120db
2018-11-20 08:25:12 +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)
6b5644868c Imported Upstream version 5.16.0.163
Former-commit-id: 108ef693596ba53323fc750a7d4fdc946d0f5322
2018-09-20 08:19:51 +00:00
Xamarin Public Jenkins (auto-signing)
2f73666fb6 Imported Upstream version 5.16.0.113
Former-commit-id: 2bcc375d35c32f5e7df9471e4d4c4ad1a42644a2
2018-08-18 08:20:11 +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)
54c0c51795 Imported Upstream version 5.14.0.121
Former-commit-id: 86f238de2954f615a08dc4afc175bee032151a5a
2018-06-02 08:53:49 +00:00
Xamarin Public Jenkins (auto-signing)
87382fcb2d Imported Upstream version 5.14.0.110
Former-commit-id: 8e5bd51c2079ccf3a8b01153e37835a82544e4cc
2018-05-31 08:55:27 +00:00
Xamarin Public Jenkins (auto-signing)
c34b058d3e Imported Upstream version 5.14.0.103
Former-commit-id: 486bd2a74e710211687006431be86dd9c935761f
2018-05-25 08:39:07 +00:00
Xamarin Public Jenkins (auto-signing)
300ff421ef Imported Upstream version 5.14.0.93
Former-commit-id: dda284b8de49fb65cd1a403db6a592e6c68a5e8c
2018-05-23 09:42:45 +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)
748f626b5b Imported Upstream version 5.12.0.233
Former-commit-id: 218076424f408621084a76e2bb1dc0520c985d11
2018-05-06 09:03:20 +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)
4373cb63d5 Imported Upstream version 5.10.0.132
Former-commit-id: a9e918d5dd4e43efde300d26074ebd475b9927ef
2018-02-22 09:08:32 +00:00
Xamarin Public Jenkins (auto-signing)
c10090095e Imported Upstream version 5.10.0.116
Former-commit-id: 8f2f8afd053f1b5b4b35b0827e7a9424613038ae
2018-02-15 19:17:22 +00:00
Xamarin Public Jenkins (auto-signing)
05e67c9e5f Imported Upstream version 5.10.0.107
Former-commit-id: b1b451a5c10f756428dd56301de98fae2be5461a
2018-02-14 19:52:27 +00:00
Xamarin Public Jenkins (auto-signing)
5e8fcc7e50 Imported Upstream version 5.10.0.105
Former-commit-id: 6e251d044a07c59c414f9b731c508b1c0b97caa7
2018-02-13 19:02:56 +00:00
Xamarin Public Jenkins (auto-signing)
6db692b74b Imported Upstream version 5.10.0.78
Former-commit-id: 46737382176d7b811604042c613d5df6eef74f33
2018-01-31 19:21: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)
5fb0d61fc6 Imported Upstream version 5.8.0.103
Former-commit-id: 34aae23f3ddb4e722881b1a99642b2c6b7a7abb6
2018-01-17 20:56:41 +00:00
Xamarin Public Jenkins (auto-signing)
6123a772ed Imported Upstream version 5.8.0.88
Former-commit-id: 4b7216ffda08448e562271ce733688e761120fc5
2017-11-28 19:36:51 +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)
5924117973 Imported Upstream version 5.4.0.199
Former-commit-id: f4d318e4b2f128fa9f4d31b37bb3839a3fc0dfb2
2017-09-25 16:57:44 +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)
4bdbaf4a88 Imported Upstream version 5.0.1.1
Former-commit-id: ffd3a248ace900b177db27aa87e5c702a9bc7322
2017-05-24 10:59:19 +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)
5005e1465f Imported Upstream version 5.0.0.48
Former-commit-id: 820b1abb8b0084602f3170cd587a99c905e1dae5
2017-04-11 11:25:27 +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)
dc50008e16 Imported Upstream version 4.8.0.520
Former-commit-id: b616177084b79e9a11491af6b1ad88f2f73a6093
2017-03-15 10:36:24 +00:00
Xamarin Public Jenkins (auto-signing)
f38a7b4f5b Imported Upstream version 4.8.0.483
Former-commit-id: dea8c53844337fa8b7535e16c76a043c3f09ea30
2017-02-07 11:16:48 +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)
693afccc61 Imported Upstream version 4.8.0.395
Former-commit-id: bc4eb15577ba347ac08038f1ebaa41e253f5b948
2017-01-03 15:17:25 +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)
804b15604f Imported Upstream version 4.6.0.182
Former-commit-id: 439c182e520038bf50777ca2fe684f216ae28552
2016-09-01 10:46:18 +00:00