Skip to content
Snippets Groups Projects
Commit e82f2601 authored by Denis Kasak's avatar Denis Kasak
Browse files

Fail decoding base64 of invalid length.

olm::decode_base64 now returns the length of the raw decoded data on
success. When given input with an invalid base64 length, it fails early
(before decoding any input) and returns -1.

This also makes the C function _olm_decode_base64 an actual binding of
olm::decode_base64 instead of a wrapper with slightly different
behaviour.
parent a5efc08e
No related branches found
No related tags found
1 merge request!27Decoding fixes for invalid base64 payloads
Loading
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