diff options
author | Colin Cross <ccross@android.com> | 2017-06-16 18:03:51 (GMT) |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2017-06-16 19:51:26 (GMT) |
commit | 11a934d427502f917dbbf47b088d9abde186c0a7 (patch) | |
tree | 5545135e808072f7f6a453264fb3c4d74c6fb210 /src/graph.h | |
parent | 00f69c17951fee353068c3905b4dd4d08322fdd3 (diff) | |
download | Ninja-11a934d427502f917dbbf47b088d9abde186c0a7.zip Ninja-11a934d427502f917dbbf47b088d9abde186c0a7.tar.gz Ninja-11a934d427502f917dbbf47b088d9abde186c0a7.tar.bz2 |
Fix segfault on edge with no inputs
PR #1281 added a deference of most_recent_input without checking
for NULL, which can occur if a build rule has no inputs.
Check it for null before dereferencing, and add a test.
Fixes #1290.
Diffstat (limited to 'src/graph.h')
0 files changed, 0 insertions, 0 deletions