Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Assert that the pointer is not null when dereferenced.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 5 Mar 2019 12:25:11 +0000 (13:25 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 5 Mar 2019 14:55:48 +0000 (15:55 +0100)
src/mc/compare.cpp

index 1f1512b..47cfabd 100644 (file)
@@ -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;