Commit 46ad7951 authored by manuroe's avatar manuroe
Browse files

OLMKit: More zeroing

parent 3540926b
...@@ -143,6 +143,7 @@ ...@@ -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 @@ ...@@ -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;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment