Home GnuPG
Diffusion GpgOL e53a36f59423

Fix crash for strange Attachments

Description

Fix crash for strange Attachments

* src/attachment.cpp (Attachment::Attachment): Fix null ptr
assignment to string for fileName and DisplayName.

This might be a programatically created attachment that has
no corresponding filename. In that case we try to fall back
to the displayName and if that fails use a generic name.

Details

Provenance
aheineckeAuthored on Jun 19 2023, 3:06 PM
Parents
rOd99b0d823ff9: Post release version bump
Branches
Unknown
Tags
Unknown
Tasks
T6546: GpgOL: Crash when encrypting mail with attachments without filename