Home GnuPG
Diffusion GpgOL 9717f5744bfd

Fix crash on temporary mailref from ribbon control

Description

Fix crash on temporary mailref from ribbon control

* src/ribbon-callbacks.cpp (get_mail_from_control): Check
if the Mail object still exists after releasing the reference.

When switching Applications in Outlook and Outlook is configured
to always show a mail in the mailview (e.g. Outlook 2016) it
can happen that the mail is newly read but the invalidation of
the ribbon happens before that and still returns a pointer to
the old mailobject. This will then be deleted once we release
it in the ribbon callback.
This caused a jump into recently freed memory which might
resulted in crashes.

Details

Provenance
aheineckeAuthored on Dec 15 2023, 12:07 PM
Parents
rO1023a58b0788: Post release version bump
Branches
Unknown
Tags
Unknown
Tasks
T6861: GpgOL: Crash when switching from calendar back to mailview