Полный аудит крипто + доставки - 67 тестов, download retry fix, bytesToAndroidUtf8 fix

This commit is contained in:
2026-04-07 17:03:43 +05:00
parent a5945152c0
commit ff8eca710d
16 changed files with 983 additions and 341 deletions

View File

@@ -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)
}