diff options
author | Richard van der Hoff <richard@matrix.org> | 2016-12-16 14:42:41 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2016-12-16 14:42:41 +0000 |
commit | 8e554ab5ef5a17c7eb271000217e036be07d88db (patch) | |
tree | e53c21d74558b47c7c20238d75d814273b399a82 /android/olm-sdk/src/main/jni/Android.mk | |
parent | 7fd63bcac7110abd5a1eef927abc3184da68a35c (diff) |
Avoid buffer overrun on encryption
Make sure we null-terminate encrypted strings before passing them to
UTF8ToString.
This used to work when we allocated the buffer on the stack, because it turns
out that allocate() zeroinits the returned memory. malloc(), of course, does
not.
Diffstat (limited to 'android/olm-sdk/src/main/jni/Android.mk')
0 files changed, 0 insertions, 0 deletions