ref: 08009f3949b5cf6edfd36e904dd8abadb19dd7ba
parent: 1dfc38c2ec40e726d7dd764cd0176e3bdf5ff008
author: Simon Tatham <[email protected]>
date: Sun Mar 12 08:41:23 EDT 2023
galaxiessolver: fix soak-test mode. It called new_game_desc with aux=NULL. But new_game_desc unconditionally writes through aux, expecting it to be valid always.
--- a/galaxies.c
+++ b/galaxies.c
@@ -4153,7 +4153,9 @@
printf("]\n");
while (1) {
- desc = new_game_desc(p, rs, NULL, false);
+ char *aux;
+ desc = new_game_desc(p, rs, &aux, false);
+ sfree(aux);
st = new_game(NULL, p, desc);
diff = solver_state(st, p->diff);
nspaces += st->w*st->h;