Fix: NULL dereference on sampling and restoration of graph's 'can_consume'
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 17 Sep 2017 18:44:22 +0000 (14:44 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 18 Sep 2017 21:17:12 +0000 (17:17 -0400)
commit3afb93ee309db7327138f647c6ba5d3688f1ccc3
tree6c8fa80b2a5200d00167272f79e4865a6ba626f2
parent72b1f06a33730a09636dfa7a1b1cc01d56766856
Fix: NULL dereference on sampling and restoration of graph's 'can_consume'

Found by Coverity Scan. A graph's 'can_consume' state must only
be sampled after the graph argument's validation. The error paths
must also repeat that check on restoration of the state.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/graph/graph.c
This page took 0.023734 seconds and 4 git commands to generate.