Home GnuPG
Diffusion GnuPG a1650b1edf80

agent: Improve error handling.
a1650b1edf80Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

agent: Improve error handling.

* agent/trustlist.c (istrusted_internal): Initialize 'err'.

There is a plausible path of execution so that a branch condition uses
the uninitialized value.

Found using the Clang Static Analyzer.

  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Nov 19 2015, 4:18 PM
Parents
rGeb957ffc4797: common: Avoid undefined behavior.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rGa1650b1edf80: agent: Improve error handling. (authored by Justus Winter <justus@g10code.com>).Nov 19 2015, 4:18 PM