OLMKit: Reset intermediate buffer to zeroes

This commit is contained in:
manuroe 2017-01-17 16:14:22 +01:00
parent 885b85f516
commit ded15597c6

View file

@ -204,6 +204,7 @@
return nil;
}
NSString *keyString = [[NSString alloc] initWithData:key encoding:NSUTF8StringEncoding];
[key resetBytesInRange:NSMakeRange(0, key.length)];
return keyString;
}