We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ffa3cd6 + 1b34721 commit 6ad4ea2Copy full SHA for 6ad4ea2
Sources/SwiftCompilerPlugin/CompilerPlugin.swift
@@ -200,7 +200,7 @@ internal struct PluginHostConnection: MessageConnection {
200
201
// Decode the count.
202
let count = header.withUnsafeBytes {
203
- UInt64(littleEndian: $0.load(as: UInt64.self))
+ UInt64(littleEndian: $0.loadUnaligned(as: UInt64.self))
204
}
205
guard count >= 2 else {
206
throw PluginMessageError.invalidPayloadSize
0 commit comments