From 2095fd57def568c6df0e43403c5ee45019f9f732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Lindqvist?= Date: Tue, 18 Nov 2014 01:56:43 +0100 Subject: [PATCH] VM: FACTOR_ASSERT so that data_root never wraps a null pointer, cause if it does, random crashes can happen --- vm/data_roots.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/vm/data_roots.hpp b/vm/data_roots.hpp index 94be9695d2..a7c702408c 100644 --- a/vm/data_roots.hpp +++ b/vm/data_roots.hpp @@ -14,6 +14,7 @@ template struct data_root : public tagged { data_root(Type* value, factor_vm* parent) : tagged(value), parent(parent) { + FACTOR_ASSERT(value); push(); }