Untangle: forbid descriptions that connect a node to itself

These cause an assertion failure in new_game(), so they should be
rejected by validate_desc().
This commit is contained in:
Ben Harris
2023-01-08 12:34:57 +00:00
parent ba944f9f95
commit d3290195da

View File

@ -755,6 +755,8 @@ static const char *validate_desc(const game_params *params, const char *desc)
return "Expected ',' after number in game description";
desc++; /* eat comma */
}
if (a == b)
return "Node linked to itself in game description";
}
return NULL;