Skip to content

Commit 595edc5

Browse files
committed
properly strip data from the blobs when using CSOps
1 parent 741bb37 commit 595edc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/BSD/Core/Extensions/CSOps.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ extension BSD {
374374
/// Gets the full blob.
375375
dataIn: Data(repeating: 0, count: Int(actualLength))
376376
)
377-
return dataOut
377+
// Strip the header from the returned data.
378+
return dataOut.subdata(in: self.blobHeaderSize..<dataOut.count)
378379
}
379380

380381
/// Gets the entitlements blob (XML).

0 commit comments

Comments
 (0)