OLMKit: More zeroing

This commit is contained in:
manuroe 2016-12-20 11:46:57 +01:00
parent 3540926b98
commit 46ad79517e
2 changed files with 2 additions and 0 deletions

View file

@ -143,6 +143,7 @@
}
plaintextData.length = plaintextLength;
NSString *plaintext = [[NSString alloc] initWithData:plaintextData encoding:NSUTF8StringEncoding];
[plaintextData resetBytesInRange:NSMakeRange(0, plaintextData.length)];
if (messageIndex)
{

View file

@ -287,6 +287,7 @@
}
plaintextData.length = plaintextLength;
NSString *plaintext = [[NSString alloc] initWithData:plaintextData encoding:NSUTF8StringEncoding];
[plaintextData resetBytesInRange:NSMakeRange(0, plaintextData.length)];
return plaintext;
}