We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffa3cd6 commit 1b34721Copy full SHA for 1b34721
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