mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-11-15 08:12:23 +00:00
Merge a6854447463c5ab343b7813a16437dd919826f1f into 04995f68e470a18d1fc99f86fa326c2a87bab4f2
This commit is contained in:
commit
bc90d6a847
@ -331,7 +331,13 @@ public struct BinaryProtocol {
|
||||
}
|
||||
|
||||
guard payloadLength >= 0 else { return nil }
|
||||
guard payloadLength <= FileTransferLimits.maxFramedFileBytes else { return nil }
|
||||
guard payloadLength <= FileTransferLimits.maxFramedFileBytes else {
|
||||
SecureLogger.warning(
|
||||
"🚫 Framed payload length \(payloadLength) exceeds cap \(FileTransferLimits.maxFramedFileBytes)",
|
||||
category: .security
|
||||
)
|
||||
return nil
|
||||
}
|
||||
|
||||
guard let senderID = readData(senderIDSize) else { return nil }
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user