davidchisnall / dtc

FreeBSD Device Tree Compiler
18 stars 15 forks source link

Fix segfault when errors happen while compiling a path-ref node #56

Closed kevans91 closed 5 years ago

kevans91 commented 5 years ago

node::parse will return 0 instead of a valid pointer if the node it parsed was ultimately not valid. This bit failed to check for that.