From 7dd7e8a3d74476aa04576e756c9ba8bba2e74859 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 5 Mar 2019 13:25:11 +0100 Subject: [PATCH] Assert that the pointer is not null when dereferenced. --- src/mc/compare.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mc/compare.cpp b/src/mc/compare.cpp index 1f1512b052..47cfabd67a 100644 --- a/src/mc/compare.cpp +++ b/src/mc/compare.cpp @@ -1236,6 +1236,7 @@ static int compare_areas_with_type(simgrid::mc::StateComparator& state, int res; do { + xbt_assert(type != nullptr); switch (type->type) { case DW_TAG_unspecified_type: return 1; -- 2.20.1