HomeClusterLabs Projects
Diffusion Booth de6837c18e22

Med: attr: fix derefence of unspecified value pointer

Description

Med: attr: fix derefence of unspecified value pointer

Jumping to out_close out of (site->type == ARBITRATOR) condition means:

  • site is not NULL at that point
  • tpt pointer hasn't been initialized, yet

-> segfault/read-write access to inappropriate data (depending on the

state the stack was in, most probably the former)

Discovered-by: static analysis/Coverity
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>

Details

Provenance
Jan Pokorný <jpokorny@redhat.com>Authored on Jan 9 2019, 4:26 PM
Parents
rBafb0da42da23: Merge pull request #75 from jnpkrn/docs
Branches
Unknown
Tags
Unknown

Event Timeline