49 Commits

Author SHA1 Message Date
Download-Fritz
09592fd355 OcAppleDiskImageLib: Return Block I/O handle on installation success 2019-04-08 20:50:18 +02:00
Download-Fritz
dacd1f91a6 OcAppleDiskImageLib: Add Chunklist-aided VerifyData API 2019-04-07 13:00:01 +02:00
Download-Fritz
8388589c3f OcAppleDiskImageLib: Make checksum verification optional 2019-04-07 12:28:01 +02:00
Download-Fritz
aa76195a97 OcAppleDiskImageLib: Initialize a caller-provided context 2019-04-06 13:19:19 +02:00
Download-Fritz
a27a52ae61 OcAppleDiskImageLib: Fix warnings regarding possibly unaligned pointer. 2019-04-05 15:57:38 +02:00
Download-Fritz
5a83bdf461 OcAppleDiskImageLib: Remove missed replace sanity check. 2019-04-05 13:27:55 +02:00
vit9696
dfe7f8f5d4 analysis: Fix warnings 2019-04-03 06:37:38 +03:00
Download-Fritz
7da2ec6231 OcAppleDiskImageLib: Fix incorrect sanity-check. 2019-04-01 07:51:41 +02:00
Download-Fritz
ec1b15d7a6 OcAppleDiskImageLib: Further guard unsafe maths operations. 2019-04-01 07:51:41 +02:00
Download-Fritz
5ba504b888 OcAppleDiskImageLib: Verify chunk sectors are in Block sector bounds. 2019-04-01 07:51:41 +02:00
Download-Fritz
3157589af5 OcAppleDiskImageLib: Don't zero the ZLIB buffer after allocation as it is required to be entirely filled. 2019-03-31 19:55:37 +02:00
Download-Fritz
afc05972d2 OcAppleDiskImageLib: Fix chunk offsets. 2019-03-31 19:53:57 +02:00
Download-Fritz
8010c15b83 OcAppleDiskImageLib: Correct Checksum Size verification as bits are stored. 2019-03-31 19:30:59 +02:00
Download-Fritz
51549ac656 OcAppleDiskImageLib: Remove incorrect FreePool() call. 2019-03-31 19:26:40 +02:00
Download-Fritz
4b657266be OcAppleDiskImageLib: Sanity-check data checksum size. 2019-03-31 19:11:25 +02:00
Download-Fritz
02a294eed8 OcAppleDiskImage: Cache and verify only used Trailer values. 2019-03-31 16:18:39 +02:00
Download-Fritz
3672891504 OcAppleDiskImageLib: Only store SectorCount rather than Trailer in Context. 2019-03-31 15:34:30 +02:00
Download-Fritz
ce0c2cf1c2 OcAppleDiskImageLib: More aggressive sanity checks. 2019-03-31 15:30:17 +02:00
Download-Fritz
6aad861edf OcAppleDiskImagelib: Abort early for invalid PLIST and fix more memory leaks. 2019-03-31 09:15:23 +02:00
Download-Fritz
14dbab75c8 OcAppleDiskImageLib: Fix InternalParsePlist memory leak on error. 2019-03-30 22:00:02 +01:00
Download-Fritz
c14a3c7c17 OcAppleDiskImageLib: Do not store unused metadata. 2019-03-30 21:53:22 +01:00
Download-Fritz
9615ec24bb OcAppleDiskImageLib: Remove BLock I/O Handle duplicate. 2019-03-30 21:09:35 +01:00
Download-Fritz
0457770de0 OcAppleDiskImageLib: Remove unused zlib files. 2019-03-30 21:05:11 +01:00
Download-Fritz
212899598e OcAppleDiskImageLib: Change non-"Block I/O" to only use Base types. 2019-03-30 21:02:14 +01:00
Download-Fritz
48296d28c3 OcAppleDiskImageLib: Update the rest of the code style. 2019-03-30 20:31:29 +01:00
Download-Fritz
c8c99a5a48 OcAppleDiskImageLib: Factor out Trailer data swapping. 2019-03-30 19:22:29 +01:00
Download-Fritz
bb1796af01 OcAppleDiskImageLib: Update Block I/O code style. 2019-03-30 19:17:01 +01:00
Download-Fritz
379eb0e70b OcAppleDiskImageLib: Refactor the BLock I/O install. 2019-03-30 18:50:08 +01:00
Download-Fritz
da09c4a0ef OcAppleDiskImageLib: Make the block construction more readable. 2019-03-30 17:38:04 +01:00
Download-Fritz
2ce3530f3c OcAppleDiskImageLib: Fix potential OOB read. 2019-03-30 17:38:04 +01:00
Download-Fritz
1da0f0178b OcAppleDiskImageLib: Don't assert a sane buffer size on context init. 2019-03-30 17:38:04 +01:00
Download-Fritz
b8588268fd OcAppleDiskImageLib: Inline CRC32 verification. 2019-03-30 17:38:04 +01:00
Download-Fritz
1836ee76b0 OcAppleDiskImageLib: Assert library parameter validity, RT-check protocol input. 2019-03-30 17:38:04 +01:00
Download-Fritz
0405aeef16 OcAppleDiskImageLib: Embed DMG DP in the private data struct. 2019-03-30 17:38:03 +01:00
Download-Fritz
0c39a6d232 OcAppleDiskImageLib: Introduce DMG_DEV_PATH to simply allocation and construction. 2019-03-30 17:38:03 +01:00
Download-Fritz
4e392d2505 OcAppleDiskImageLib: Remove a couple of gotos. 2019-03-30 17:38:03 +01:00
vit9696
4c4dd117d6 OcAppleDiskImageLib: Fix compilation warning 2019-03-30 16:47:07 +03:00
Download-Fritz
b3c00c005b OcAppleDiskImageLib: Use OcCompressionLib over internal zlib. 2019-03-30 12:35:28 +01:00
Download-Fritz
7f3013b0ba OcAppleDiskImageLib: Move all Block I/O Code to BlockIo.c. 2019-03-30 12:35:28 +01:00
Download-Fritz
7655880df9 OcAppleDiskImageLib: Use BaseLib's CalculateCrc32 over gBS's. 2019-03-29 11:15:19 +01:00
Download-Fritz
d16b2fac6c OcAppleDiskImageLib: Allocate Block I/O Media struct as part of the context struct. 2019-03-29 11:05:03 +01:00
Download-Fritz
910df29e93 OcAppleDiskImageLib: Directly print the DMG file path to the Device Path node. 2019-03-29 10:59:53 +01:00
Download-Fritz
6c26991e73 OcAppleDiskImageLib: Allocate temporary Device Path nodes on the stack. 2019-03-29 10:57:18 +01:00
Download-Fritz
95920f17a3 OcAppleDiskImageLib: Use a stack buffer for the DMG file name. 2019-03-29 10:38:42 +01:00
Download-Fritz
8d8d68ef4c OcAppleDiskImageLib: Move include directives to the code files. 2019-03-29 10:38:42 +01:00
Download-Fritz
7704f2bdfd OcAppleDiskImageLib: Remove unused allocation functions. 2019-03-29 10:38:42 +01:00
Download-Fritz
ffa5d574b1 OcAppleDiskImageLib: Fix compilation warnings. 2019-03-29 10:38:42 +01:00
Download-Fritz
f37ceb655c OcAppleDiskImageLib: Adapt to OcXmlLib changes. 2019-03-29 10:38:42 +01:00
Download-Fritz
7f078a39f7 OcAppleDiskImageLib: Initial import. 2019-03-29 10:38:42 +01:00