diff options
author | Justin C <charetjc@gmail.com> | 2013-02-02 10:11:42 (GMT) |
---|---|---|
committer | Justin C <charetjc@gmail.com> | 2013-02-02 10:11:42 (GMT) |
commit | 757820fe1c67290328c77802ea7718505b77f437 (patch) | |
tree | a7081c85fb1ca0d744b16f5629b5f77a38f764be /src/csgtermnormalizer.cc | |
parent | af0658a8fe441ebb0eb3d238e7055fd592343605 (diff) |
missing NULL check when normalization exceeds limit for elements
Diffstat (limited to 'src/csgtermnormalizer.cc')
-rw-r--r-- | src/csgtermnormalizer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/csgtermnormalizer.cc b/src/csgtermnormalizer.cc index e2474e9..81fab80 100644 --- a/src/csgtermnormalizer.cc +++ b/src/csgtermnormalizer.cc @@ -20,7 +20,7 @@ shared_ptr<CSGTerm> CSGTermNormalizer::normalize(const shared_ptr<CSGTerm> &root PRINTB("WARNING: Normalized tree is growing past %d elements. Aborting normalization.\n", this->limit); // Clean up any partially evaluated terms shared_ptr<CSGTerm> newroot = root, tmproot; - while (newroot != tmproot) { + while (newroot && newroot != tmproot) { tmproot = newroot; newroot = collapse_null_terms(tmproot); } |