76 Commits

Author SHA1 Message Date
PMheart
228f8ca1fb Codestyle: Apply codestyle changes with Uncrustify 2022-04-25 14:51:15 +02:00
John Davis
676ef93d9d
OcAppleKernelLib: Add 32-bit prelinking support (#122) 2020-09-29 12:41:37 +03:00
John Davis
74062d4e0f
OcAppleKernelLib: Add 32-bit Mach-O and patching support (#118) 2020-09-13 22:57:10 +03:00
vit9696
dde7432b62 OcAppleKernelLib: Implement KXLD symbolic solver 2020-08-22 09:11:28 +03:00
vit9696
c3e14b6824
OcAppleKernelLib: Implement mkext injection support (#99) 2020-08-15 00:40:06 +03:00
vit9696
365e6ad569 OcMachoLib: Fix compiler warning 2020-07-05 23:37:18 +03:00
vit9696
995924032c OcAppleKernelLib: Get kernel patcher work (mostly) 2020-07-05 04:23:43 +03:00
Download-Fritz
07b697d28d OcMachoLib: Support KC Mach-Os 2020-07-04 15:28:22 +02:00
Download-Fritz
05127da085 OcMachoLib: Add explicit casts to silence MSVC for IA32 targets 2019-11-03 16:46:35 +01:00
Download-Fritz
1d2e449f56 Multiple: Fix 32-bit linking issues 2019-11-03 15:43:59 +01:00
Download-Fritz
156cb7c586 Various type and cast fixes 2019-11-02 23:16:33 +01:00
Download-Fritz
c698bcb68c OcMachoLib: Fix security and parsing issues 2019-08-28 16:02:19 +02:00
Download-Fritz
4917e8d73e OcGuardLib: Introduce OC_ALIGNOF and deprecate OC_ALIGNED 2019-08-28 15:37:55 +02:00
vit9696
dfe7f8f5d4 analysis: Fix warnings 2019-04-03 06:37:38 +03:00
Download-Fritz
bbea9dba45 OcMachoLib: Retrieve symbol section via Section instead of Value. 2019-03-26 23:16:56 +01:00
Download-Fritz
2ac0ee8085 OcMachoLib: Correctly detect symbol definition and section type. 2019-03-26 23:16:56 +01:00
Download-Fritz
f1ab3b85e9 OcAppleKernelLib: STAB symbols are not considered defined. 2019-03-26 22:23:25 +01:00
vit9696
b9988453e3 OcMachoLib: Fix symbol type comparison 2019-03-27 00:10:21 +03:00
Download-Fritz
61244b5fca OcMachoLib and OcAppleKernelLib: Properly error-check section indices. 2019-03-26 21:20:17 +01:00
Download-Fritz
c814d82ef1 OcMachoLib: Introduce GetSymbolbyExternReloc API. 2019-03-26 17:18:02 +01:00
Download-Fritz
ff3563866d OcMachoLib: Sanity-check symbols referenced by local relocs. 2019-03-26 17:02:02 +01:00
Download-Fritz
c934495c0f OcMachoLib: Skip when an insane symbol is hit. Don't re-sanity-check. 2019-03-26 17:01:38 +01:00
Download-Fritz
6e194294dd OcMachoLib: Assume relocation target is aligned. 2019-03-26 16:02:33 +01:00
Download-Fritz
b5ccf1f93b OcMachoLib: Support local relocations when getting a symbol by offset. 2019-03-26 15:34:33 +01:00
Download-Fritz
3b5b866144 OcMachoLib: Consider indirect Symbol Table might be separate from Symbol Table. 2019-03-24 18:32:40 +01:00
Download-Fritz
dce8966c9e OcMachoLib: Remove superfluous 32-bit limit check. 2019-03-23 20:27:27 +01:00
Download-Fritz
a9c1f22db3 OcMachoLib: Optionally return MaxSize parameter for GetFileOffset.
OcAppleKernelLib: Adapt calls for security.
2019-03-23 17:36:40 +01:00
Download-Fritz
70278f9ef8 OcMachoLib and OcAppleKernelLib: Remove superfluous symbol range checks. 2019-03-23 17:35:27 +01:00
Download-Fritz
0ce7e1ec99 OcMachoLib: Update GetSymbolByRelocOffset interface to report Relocation existance. 2019-03-23 11:51:15 +01:00
Download-Fritz
b18a2feeec OcMachoLib: Allow for relocation of external symbols. 2019-03-22 11:52:43 +01:00
Download-Fritz
67e445f97b OcMachoLib: Do not assume DySymtab is available 2019-03-21 21:19:31 +01:00
vit9696
59f86290b6 Add missing Mach-O dependencies 2019-03-19 23:16:17 +03:00
vit9696
b05b5a66d1 Implement kext patcher with symbolic resolver in OcAppleKernelLib
1. Add support for parsing ID/IDREF in OcXmlLib.
2. Add support for parsing hex numbers in OcXmlLib.
3. Fix buggy MachoSymbolGetFileOffset64 mishandling section numbers.
2019-03-18 00:57:20 +03:00
Download-Fritz
5f5c379c2c Fix a couple of type mismatches 2019-03-09 15:02:18 +01:00
vit9696
a471bd6c61 Late touches on OcMachoLib 2019-01-17 10:01:26 +03:00
vit9696
caabf0b2ab Continue fixing and refactoring OcMachoLib 2019-01-16 17:46:10 +03:00
vit9696
aca4a620ac Fix sanity of symbol retrieval code 2019-01-16 13:15:22 +03:00
vit9696
69f441b5ec Restore OcMachoLib interfaces for convenience resons 2019-01-15 23:34:01 +03:00
vit9696
a43cb1386e Start cleaning up OcMachoLib 2019-01-15 18:23:29 +03:00
Download-Fritz
793b78d103 OcMachoLib: Revise several function prorotypes and checks as part of security considerations. 2019-01-12 22:57:57 +01:00
Download-Fritz
dde6882ba3 OcMachoLib: Drop inconvenient CONST qualifiers. 2019-01-05 15:37:14 +01:00
Download-Fritz
7c8347f0ad OcMachoLib: ASSERT for UINT32 limitation assumption in the symbol code. 2019-01-05 15:29:21 +01: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
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
97da06f663 OcMachoLib: use UINT32 for FileSize and all offsets. 2018-11-06 09:08:46 +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
4241912574 OcMachoLib: Publish updated Context struct to support static allocations. 2018-11-04 09:06:50 +01:00
Download-Fritz
4b4e518567 OcMachoLib: Expand internal CONST usage and remove related redundant casts. 2018-11-04 09:02:15 +01:00