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
389a181e
Commit
389a181e
authored
May 26, 2016
by
Richard van der Hoff
Browse files
javascript/olm_inbound_group_session.js: fix length arg
message.length counts codepoints; we need bytes.
parent
315fbfc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
javascript/olm_inbound_group_session.js
View file @
389a181e
...
...
@@ -69,7 +69,7 @@ InboundGroupSession.prototype['decrypt'] = restore_stack(function(
var
plaintext_buffer
=
stack
(
max_plaintext_length
);
var
plaintext_length
=
session_method
(
Module
[
"
_olm_group_decrypt
"
])(
this
.
ptr
,
message_buffer
,
message
.
length
,
message_buffer
,
message
_array
.
length
,
plaintext_buffer
,
max_plaintext_length
);
return
Pointer_stringify
(
plaintext_buffer
,
plaintext_length
);
...
...
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