OLMKit: More zeroing
This commit is contained in:
parent
3540926b98
commit
46ad79517e
2 changed files with 2 additions and 0 deletions
|
@ -143,6 +143,7 @@
|
||||||
}
|
}
|
||||||
plaintextData.length = plaintextLength;
|
plaintextData.length = plaintextLength;
|
||||||
NSString *plaintext = [[NSString alloc] initWithData:plaintextData encoding:NSUTF8StringEncoding];
|
NSString *plaintext = [[NSString alloc] initWithData:plaintextData encoding:NSUTF8StringEncoding];
|
||||||
|
[plaintextData resetBytesInRange:NSMakeRange(0, plaintextData.length)];
|
||||||
|
|
||||||
if (messageIndex)
|
if (messageIndex)
|
||||||
{
|
{
|
||||||
|
|
|
@ -287,6 +287,7 @@
|
||||||
}
|
}
|
||||||
plaintextData.length = plaintextLength;
|
plaintextData.length = plaintextLength;
|
||||||
NSString *plaintext = [[NSString alloc] initWithData:plaintextData encoding:NSUTF8StringEncoding];
|
NSString *plaintext = [[NSString alloc] initWithData:plaintextData encoding:NSUTF8StringEncoding];
|
||||||
|
[plaintextData resetBytesInRange:NSMakeRange(0, plaintextData.length)];
|
||||||
return plaintext;
|
return plaintext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue