Skip to content
Snippets Groups Projects
Commit 46ad7951 authored by manuroe's avatar manuroe
Browse files

OLMKit: More zeroing

parent 3540926b
No related branches found
No related tags found
No related merge requests found
......@@ -143,6 +143,7 @@
}
plaintextData.length = plaintextLength;
NSString *plaintext = [[NSString alloc] initWithData:plaintextData encoding:NSUTF8StringEncoding];
[plaintextData resetBytesInRange:NSMakeRange(0, plaintextData.length)];
if (messageIndex)
{
......
......@@ -287,6 +287,7 @@
}
plaintextData.length = plaintextLength;
NSString *plaintext = [[NSString alloc] initWithData:plaintextData encoding:NSUTF8StringEncoding];
[plaintextData resetBytesInRange:NSMakeRange(0, plaintextData.length)];
return plaintext;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment