aboutsummaryrefslogtreecommitdiff
path: root/xcode
diff options
context:
space:
mode:
authormanuroe <manu@matrix.org>2017-01-17 16:14:22 +0100
committermanuroe <manu@matrix.org>2017-01-17 16:14:22 +0100
commitded15597c6736d33bac74d34251c8527e5fa360f (patch)
tree43a69d268351e7d94db579600f69a428fdc09055 /xcode
parent885b85f5167d2d3ddcbe3de41dc88e8586b01a57 (diff)
OLMKit: Reset intermediate buffer to zeroes
Diffstat (limited to 'xcode')
-rw-r--r--xcode/OLMKit/OLMInboundGroupSession.m1
1 files changed, 1 insertions, 0 deletions
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;
}