From: Jérémie Galarneau Date: Sun, 17 Sep 2017 18:44:22 +0000 (-0400) Subject: Fix: NULL dereference on sampling and restoration of graph's 'can_consume' X-Git-Tag: v2.0.0-pre4~20 X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=3afb93ee309db7327138f647c6ba5d3688f1ccc3;hp=3afb93ee309db7327138f647c6ba5d3688f1ccc3;p=babeltrace.git 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 ---