We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9b05c4 commit 2ca71c0Copy full SHA for 2ca71c0
Sources/Mach/Core/Messaging/Descriptors.swift
@@ -363,7 +363,7 @@ extension Mach {
363
else { fatalError("Descriptor size mismatch.") }
364
365
// If we defined `size` and `totalSize` correctly, this should never happen, but we'll check anyway.
366
- guard descriptorPointer + descriptor.size >= startPointer + self.totalSize
+ guard (descriptorPointer + descriptor.size) <= (startPointer + self.totalSize)
367
else { fatalError("Descriptor overflow.") }
368
369
// Now that we've checked everything, we can safely copy the descriptor.
0 commit comments