2227 Commits

Author SHA1 Message Date
Download-Fritz
1bc4c3d379 OcMachoLib: Fix possible overflows when concating C++ symbol names. 2019-01-05 15:29:13 +01:00
Download-Fritz
18c8cf5435 OcXmlLib: Decorate XmlEasyChild with EFIAPI due to VA usage. 2019-01-05 15:29:01 +01:00
vit9696
7dc349bce1 Do not require OcDevicePropertyLib be used in drivers only 2019-01-05 17:20:26 +03:00
vit9696
32e6ad8440 Fix EFI_ERROR condition and improve readability 2019-01-04 23:48:39 +03:00
vit9696
3179fb0728 Initial attempt to fix and refactor OcDevicePropertyLib 2019-01-04 23:22:43 +03:00
Download-Fritz
62c681dd9f OcMachoLib: Fix function prototype from last commit. 2018-11-10 10:57:46 +01:00
Download-Fritz
51c63ec135 OcMachoLib: Introduce MachoSymbolGetFileOffset64() API. 2018-11-10 10:53:11 +01:00
Download-Fritz
6b4d5120b6 OcMachoLib: Do not use CONST qualifier in casts for readability. 2018-11-10 10:52:33 +01:00
Download-Fritz
619e30c5ba OcMachoLib: Retrieve symbol type by name. 2018-11-09 18:50:20 +01:00
Download-Fritz
d924a62b4e OcStringLib: Convert to BASE instance. 2018-11-09 18:49:30 +01:00
Download-Fritz
37b0e363d9 OcMachoLib: Verify the name layout for SMCP and MetaClass symbols. 2018-11-09 18:30:23 +01:00
Download-Fritz
d6790881d3 OcAppleImageVerificationLib: Print image size and success mesage as INFO, not WARN. 2018-11-09 18:09:00 +01:00
Download-Fritz
b22cb40043 OcMachoLib: Use new OcStringLib macros for CCX symbol name handling. 2018-11-07 14:27:27 +01:00
Download-Fritz
97718a7599 OcMachoLib: Safety improvements, including overflow checks.
* Check for offset and address overflows
* Properly sanity-check sections
* Fix an issue misusing Section->Alignment
2018-11-07 10:18:19 +01:00
Download-Fritz
f94f6c5645 OcMachoLib: Fix Relocation iteration index overflow. 2018-11-06 09:09:01 +01:00
Download-Fritz
97da06f663 OcMachoLib: use UINT32 for FileSize and all offsets. 2018-11-06 09:08:46 +01:00
vit9696
475f0176c4 Extend OcDevicePathLib and fix memory leaks 2018-11-05 12:06:51 +03:00
vit9696
f3222f5f9f Fix unicode print buffer size 2018-11-05 03:44:29 +03:00
vit9696
61e028454d Silence analyser 2018-11-05 02:28:09 +03:00
vit9696
237a78791d Add fallback onscreen printing to OcDebugLogLib and switch to it 2018-11-05 02:05:25 +03:00
vit9696
ec04c191b0 Switch to new logging scheme and fix compilation 2018-11-05 01:41:21 +03:00
Download-Fritz
0418143198 OcMachoLib: Revert 634f560 for Segments as it's not a completed type. 2018-11-04 11:09:58 +01:00
Download-Fritz
6388838c9a OcMachoLib: Fix LC boundary verification. 2018-11-04 10:56:43 +01:00
Download-Fritz
634f560be8 OcMachoLib: Verify exact LC size when the exact type is known. 2018-11-04 10:44:09 +01:00
Download-Fritz
006cb222e4 OcMachoLib: Check symbol value sanity in MachoGetMetaclassSymbolFromSmcpSymbol64(). 2018-11-04 10:38:57 +01:00
Download-Fritz
ff6a9b83eb OcMachoLib: Ensure string index sanity when retrieving an indirect symbol's name. 2018-11-04 10:30:33 +01:00
Download-Fritz
649679570a OcMachoLib: Use MachoGetSymbolName64() internally. 2018-11-04 09:55:31 +01:00
Download-Fritz
b14efc6136 OcMachoLib: Catch potential Index overflow when iterating over Relocations. 2018-11-04 09:14:44 +01:00
Download-Fritz
524732e0ef OcMachoLib: Use UINT32 variables to refer to UINT32 Mach-O structure data. 2018-11-04 09:14:20 +01:00
Download-Fritz
4241912574 OcMachoLib: Publish updated Context struct to support static allocations. 2018-11-04 09:06:50 +01:00
Download-Fritz
c957f97c30 OcMachoLib: Consume OcGuardLib to verify alignment requirements. 2018-11-04 09:05:49 +01:00
Download-Fritz
4b4e518567 OcMachoLib: Expand internal CONST usage and remove related redundant casts. 2018-11-04 09:02:15 +01:00
Download-Fritz
df54805a92 OcMachoLib: Always return Mach-O memory as CONST. 2018-11-04 08:42:04 +01:00
Download-Fritz
8ddbd9fdd4 OcMachoLib: Introduce MachoGetFileSize() API. 2018-11-04 08:21:17 +01:00
Download-Fritz
3b9ad05f71 OcMachoLib: Generically take VOID * for file data in Context init. 2018-11-04 08:19:27 +01:00
Download-Fritz
9c3eb014c7 OcMachoLib: Fix MachoGetNextSegment64() to return NULL when the LC is too small. 2018-11-03 21:04:19 +01:00
Download-Fritz
46c6c16405 OcMachoLib: Enforce exact UUID LC size. 2018-11-03 20:58:42 +01:00
Download-Fritz
f7ec12d20f OcMachoLib: Do not check for LC sanity post-init. 2018-11-03 19:50:06 +01:00
Download-Fritz
358bd77828 OcMachoLib: Move check for previous retrieval of SYMTAB to the retrieval function. 2018-11-03 19:49:44 +01:00
Download-Fritz
987172c4c0 OcMachoLib: Prefer Index over Walkers when available. 2018-11-03 19:48:12 +01:00
Download-Fritz
bb0813001d OcMachoLib: Remove redundant symbol sanity check. 2018-11-03 19:47:11 +01:00
Download-Fritz
edbfcdaecb OcMachoLib: Reorder MachoInitializeContext() arguments to match OOP. 2018-11-03 19:45:51 +01:00
Download-Fritz
4c77093379 OcMachoLib: Remove redundant cast. 2018-11-03 19:45:10 +01:00
vit9696
abbff41d03 Silence analyser 2018-11-01 18:51:07 +03:00
Download-Fritz
dd8df2b112 OcGuardLib: Use EFIAPI for functions involving VA. 2018-11-01 07:27:02 +01:00
vit9696
70b9c345dd Implemented UBSan runtime support based on NetBSD source 2018-11-01 00:30:24 +03:00
Download-Fritz
16376f2ee9 Merge branch 'master' of github.com:acidanthera/OcSupportPkg 2018-10-31 07:21:51 +01:00
vit9696
811f3b9212 Update Visual Studio projects 2018-10-31 00:49:51 +03:00
vit9696
c97890a5f3 Implement alignment checking macros within OcGuardLib (formerly OcOverflowLib) 2018-10-31 00:45:36 +03:00
vit9696
5bd4aa6091 Move NullTextOutput to OcMiscLib 2018-10-28 18:09:29 +03:00