Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
46ad7951
Commit
46ad7951
authored
Dec 20, 2016
by
manuroe
Browse files
OLMKit: More zeroing
parent
3540926b
Changes
2
Show whitespace changes
Inline
Side-by-side
xcode/OLMKit/OLMInboundGroupSession.m
View file @
46ad7951
...
...
@@ -143,6 +143,7 @@
}
plaintextData
.
length
=
plaintextLength
;
NSString
*
plaintext
=
[[
NSString
alloc
]
initWithData
:
plaintextData
encoding
:
NSUTF8StringEncoding
];
[
plaintextData
resetBytesInRange
:
NSMakeRange
(
0
,
plaintextData
.
length
)];
if
(
messageIndex
)
{
...
...
xcode/OLMKit/OLMSession.m
View file @
46ad7951
...
...
@@ -287,6 +287,7 @@
}
plaintextData
.
length
=
plaintextLength
;
NSString
*
plaintext
=
[[
NSString
alloc
]
initWithData
:
plaintextData
encoding
:
NSUTF8StringEncoding
];
[
plaintextData
resetBytesInRange
:
NSMakeRange
(
0
,
plaintextData
.
length
)];
return
plaintext
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment