From 6dc1140d5b2408db771065c0c13959c95aac3156 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Fri, 23 Sep 2022 16:11:37 +0200 Subject: [PATCH] Revert "Work around segfault in Xcode 13.3 "Release"" This reverts commit 02e702d97ba495edc6533edd41eb482be9bb3311. --- Sources/CTunnelKitOpenVPNProtocol/include/PacketMacros.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/CTunnelKitOpenVPNProtocol/include/PacketMacros.h b/Sources/CTunnelKitOpenVPNProtocol/include/PacketMacros.h index 97fb7c5..5625df8 100644 --- a/Sources/CTunnelKitOpenVPNProtocol/include/PacketMacros.h +++ b/Sources/CTunnelKitOpenVPNProtocol/include/PacketMacros.h @@ -115,8 +115,7 @@ static inline void PacketSwap(uint8_t *ptr, NSInteger len1, NSInteger len2) static inline void PacketSwapCopy(uint8_t *dst, NSData *src, NSInteger len1, NSInteger len2) { - // XXX: this line segfaults Xcode 13.3 on Archive -// NSCAssert(src.length >= len1 + len2, @"src is smaller than expected"); + NSCAssert(src.length >= len1 + len2, @"src is smaller than expected"); memcpy(dst, src.bytes + len1, len2); memcpy(dst + len2, src.bytes, len1); const NSInteger preambleLength = len1 + len2;