u3: detect snapshots from a larger loom, print and exit
@@ -1118,6 +1118,13 @@ u3e_live(c3_o nuu_o, c3_c* dir_c)
_ce_patch_delete();
}
+ // detect snapshots from a larger loom
+ //
+ if ( (u3P.nor_u.pgs_w + u3P.sou_u.pgs_w + 1) >= u3a_pages ) {
+ fprintf(stderr, "boot: snapshot too big for loom\r\n");
+ exit(1);
+ }
+
// mark all pages dirty (pages in the snapshot will be marked clean)
//
u3e_foul();
