Home GnuPG
Diffusion GpgOL 8349fea61411

Fix uninitalized return value in create_category

Description

Fix uninitalized return value in create_category

* src/oomhelp.cpp (create_category): Initialize rVariant.

If the invoke does not set the return value the return
value is uninitalized and the call to VariantClear later
might free an invalid address. Which causes undefined
behavior and might lead to freezes and crashes.

This was noticed as a "crash after decrypt / verify".

Details

Provenance
aheineckeAuthored on Fri, Aug 23, 12:14 PM
Parents
rOf1558b0d6329: Post release version bump
Branches
Unknown
Tags
Unknown