Home GnuPG
Diffusion GpgOL e6e29900ce0e

Check for error in dbg decrated oom funcs

Description

Check for error in dbg decrated oom funcs

* src/oomhelp.cpp (gpgol_openProperty, gpgol_queryInterface):
Check result before calling memdbg_addRef.

Calling something on the pointer on error is undefined
so we may not do it. memdbg_addRef tries to get the
name of the interface. That might then crash.
Usually the returned pointer should be NULL so
on error so it does not happen much.

Details

Provenance
aheineckeAuthored on Nov 19 2018, 10:58 AM
Parents
rO287eaa69c04c: Fix log_addins and use it to log all addins
Branches
Unknown
Tags
Unknown
Tasks
T4262: Reading / marking old signed Mails crashes Outlook