From ded15597c6736d33bac74d34251c8527e5fa360f Mon Sep 17 00:00:00 2001 From: manuroe Date: Tue, 17 Jan 2017 16:14:22 +0100 Subject: OLMKit: Reset intermediate buffer to zeroes --- xcode/OLMKit/OLMInboundGroupSession.m | 1 + 1 file changed, 1 insertion(+) (limited to 'xcode') diff --git a/xcode/OLMKit/OLMInboundGroupSession.m b/xcode/OLMKit/OLMInboundGroupSession.m index 3ef02e8..08459ca 100644 --- a/xcode/OLMKit/OLMInboundGroupSession.m +++ b/xcode/OLMKit/OLMInboundGroupSession.m @@ -204,6 +204,7 @@ return nil; } NSString *keyString = [[NSString alloc] initWithData:key encoding:NSUTF8StringEncoding]; + [key resetBytesInRange:NSMakeRange(0, key.length)]; return keyString; } -- cgit v1.2.3