Download-Fritz
339b36686b
OcMachoLib: Turn GetSymbolByName into a private API. Different subsections shall be accessed by dedicated APIs.
2018-10-20 14:51:21 +02:00
Download-Fritz
5b67566e6f
OcMachoLib: Fix "Mach-O" stylization.
2018-10-20 02:13:15 +02:00
Download-Fritz
53178770a0
OcMachoLib/Header: Introduce more sanity checks.
2018-10-20 02:10:41 +02:00
Download-Fritz
b38e572c80
OcMachoLib: Remove redundant symbol casts.
2018-10-20 01:33:04 +02:00
Download-Fritz
6015bce8d7
OcMachoLib: Update Get*Symtab naming scheme.
2018-10-20 01:32:44 +02:00
Download-Fritz
e54de715d4
OcMachoLib: Adapt to the new Mach-O header.
2018-10-20 01:29:37 +02:00
Download-Fritz
22c2cb9b44
OcMachoLib: Allow header to have more space than needed reserved for LCs.
2018-10-20 00:23:43 +02:00
Download-Fritz
fbc5310bc9
OcMachoLib: Fix address range check.
2018-10-19 23:56:30 +02:00
Download-Fritz
923cbb6bdb
OcMachoLib: Drop missed invalid ASSERT.
2018-10-19 23:17:11 +02:00
Download-Fritz
ee9296b25d
OcMachoLib: Fix typo in name comparison.
2018-10-19 23:14:39 +02:00
Download-Fritz
2c26827077
OcMachoLib: Make OC_MACHO_CONTEXT struct private. Provide MachoGetContextSize().
2018-10-19 18:17:12 +02:00
Download-Fritz
0247641371
OcMachoLib: Deprecate GetFirstSegment/Section to simplify the future control flow.
2018-10-19 15:27:11 +02:00
Download-Fritz
54ae785af2
OcMachoLib: Adapt to the new MACH-O header.
2018-10-19 15:16:22 +02:00
Download-Fritz
bd943cab7d
OcMachoLib: Remove a superfluous LC type check.
2018-10-19 14:59:31 +02:00
Download-Fritz
d4b592967f
OcMachoLib: Bugfix for using a wrong segment size.
2018-10-19 14:59:15 +02:00
Download-Fritz
a3241dbde4
OcMachoLib: Deprecate Get*Command in favor of specific retrieval functions.
2018-10-19 14:56:38 +02:00
Download-Fritz
9806ebadbb
OcMachoLib: Add missing ASSERTs to the Context init function.
2018-10-19 14:54:40 +02:00
Download-Fritz
b1bc2328ad
OcMachoLib: Introduce Symtab and DySymtab retrieval functions.
2018-10-19 14:54:09 +02:00
Download-Fritz
1ce48bf040
OcMachoLib: Verify FileSize can handle at least the header and the minimal LC size.
2018-10-19 14:10:46 +02:00
Download-Fritz
c6bf9d0590
OcMachoLib: Introduce Context concept.
2018-10-19 05:55:38 +02:00
Download-Fritz
be5fdd2b83
OcMachoLib: Remove signature checks from functions that only use MachHeader as parameter to library functions that do perform that check.
2018-10-16 16:23:36 +02:00
Download-Fritz
f4222571bd
OcMachoLib: Verify there is at least one lC in MachoGetFirstCommand.
2018-10-16 16:19:29 +02:00
Download-Fritz
d46983eb94
OcMachoLib: Make MachoGetNextCommand safer by checking it's entirely within the LC range.
2018-10-16 16:18:18 +02:00
Download-Fritz
a7f585e589
OchMachoLib: Fix MachoGetNextCommand for LCs have variable sizes.
2018-10-16 16:08:42 +02:00
Download-Fritz
ef78b4bb81
OcMachoLib: Make MachoGetSectionByName safer.
2018-10-15 04:33:47 +02:00
Download-Fritz
f1d68db6ad
OcMachoLib: implement MachoGetSegmentByName via MachoGet*Segment.
2018-10-15 04:33:25 +02:00
Download-Fritz
3f01e2a18c
OcMachoLib: Implement MachoGetLastAddress via MachoGet*Segment.
2018-10-15 04:27:07 +02:00
Download-Fritz
fb6bf6e072
OcMachoLib: Fix borked MachoGetFirstCommand.
2018-10-15 04:26:38 +02:00
Download-Fritz
b9f25bbb0b
OcMachoLib: Make MachoGetNextSegment safer.
2018-10-15 04:20:02 +02:00
Download-Fritz
cb7872bc26
OcMachoLib: Implement MachoGetFirstSegment and MachoGetNextSegment via MachoGet*Command.
2018-10-15 04:14:28 +02:00
Download-Fritz
971b454b2f
OcMachoLib: Implement MachoGetNextCommand64.
2018-10-15 04:14:04 +02:00
Download-Fritz
364927a336
OcMachoLib: Replace CpuType with MachHeader arguments for unconditional checks are needed anyway.
2018-10-15 03:57:08 +02:00
Download-Fritz
1e189609de
OcMachoLib: Introduce slightly more error-checking.
2018-10-15 03:57:08 +02:00
Download-Fritz
ba570f2100
OcMachoLib: Remove nonsensical ASSERTs.
2018-10-15 03:57:08 +02:00
Download-Fritz
bd05dab51d
OcMachoLib: Error-exit instead of ASSERT when the MACH-O signature does not match.
2018-10-15 03:57:08 +02:00
vit9696
f494d1e1f4
Drop print lib
2018-10-14 20:12:03 +03:00
vit9696
36da7261a1
Fix OcMachoLib compilation
2018-10-14 12:01:45 +03:00
Download-Fritz
663697ce20
OcMachoLib: Clarify symbol name functions naming.
2018-10-14 05:14:01 +02:00
Download-Fritz
f0ef9a23a7
OcMachoLib: Remove accidentially imported function.
2018-10-14 04:37:21 +02:00
Download-Fritz
6b3c6347c8
OcMachoLib: Initial import.
2018-10-14 04:17:50 +02:00
Download-Fritz
466b43833e
Remove "Hdr" structs introduced with the one-sized array hack.
2018-10-12 16:07:02 +02:00
Download-Fritz
2527fc9c75
Use flexible arrays to avoid UB.
...
This partially reverts 8949a65027 . C99, 6.5.6 7) has not been considered.
2018-10-11 17:18:00 +02:00
Download-Fritz
47a58c76f5
Update copyright information.
2018-10-11 16:52:06 +02:00
Download-Fritz
d44e923f5c
OcDevicePropertyLib: Restore variable functionality.
...
This partially reverts e4d55a4f77
2018-10-11 16:13:04 +02:00
Download-Fritz
8949a65027
Replace one-sized arrays with one member (flexible array hack) to avoid UB.
...
Reference: https://wiki.sei.cmu.edu/confluence/display/c/DCL38-C.+Use+the+correct+syntax+when+declaring+a+flexible+array+member
2018-10-11 15:58:08 +02:00
Download-Fritz
1f917cae01
OcAppleImageVerificationLib: Fix OcOverflowSubU32 call on an UINTN.
2018-10-10 19:21:42 +02:00
Download-Fritz
65855f57da
OcOverflowLib: Fix cosmetic casting errors.
...
"Cosmetic" casts which are warned about over being implicit from UINTN to UINT32 (analoguous for their pointers), however their sizes are guaranteed to be equal.
2018-10-10 19:20:54 +02:00
Alex James
e4d55a4f77
OcDevicePropertyLib: Fix bugs reported by Download-Fritz
2018-10-07 12:33:23 -05:00
vit9696
709a88c5f4
Add OcDevicePropertyLib and OcFirmwarePasswordLib
2018-10-07 20:21:12 +03:00
vit9696
ff74b34b42
Externalise ProcessorInfo
2018-10-07 04:33:03 +03:00