Skip to content
  • Denis Kasak's avatar
    megolm: Fix use of uninitialized value in group message decoding. · c325db02
    Denis Kasak authored
    _olm_decode_group_message should initialize all fields of the results
    struct before returning. This is because its caller
    _decrypt_max_plaintext_length relies on it having initialized these
    fields.
    
    Luckily, this only allows one to subvert the version check in
    _decrypt_max_plaintext_length, but not the following check that the
    ciphertext field is non-null because that field *is* initialized.
    c325db02