Полный аудит крипто + доставки - 67 тестов, download retry fix, bytesToAndroidUtf8 fix
This commit is contained in:
@@ -848,29 +848,11 @@ final class ProtocolManager: @unchecked Sendable {
|
||||
}
|
||||
case 0x1A:
|
||||
if let p = packet as? PacketSignalPeer {
|
||||
if p.isMalformed {
|
||||
reportMalformedCriticalPacket(
|
||||
packetId: packetId,
|
||||
packetSize: data.count,
|
||||
fingerprint: p.malformedFingerprint,
|
||||
fallbackFingerprint: "packet1a_parse_failed"
|
||||
)
|
||||
return
|
||||
}
|
||||
onSignalPeerReceived?(p)
|
||||
notifySignalPeerHandlers(p)
|
||||
}
|
||||
case 0x1B:
|
||||
if let p = packet as? PacketWebRTC {
|
||||
if p.isMalformed {
|
||||
reportMalformedCriticalPacket(
|
||||
packetId: packetId,
|
||||
packetSize: data.count,
|
||||
fingerprint: p.malformedFingerprint,
|
||||
fallbackFingerprint: "packet1b_parse_failed"
|
||||
)
|
||||
return
|
||||
}
|
||||
onWebRTCReceived?(p)
|
||||
notifyWebRtcHandlers(p)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user