Index: packages/redboot/current/src/flash.c =================================================================== RCS file: /cvs/ecos/ecos/packages/redboot/current/src/flash.c,v retrieving revision 1.74 diff -u -u -p -r1.74 flash.c --- packages/redboot/current/src/flash.c 29 Jun 2005 19:41:46 -0000 1.74 +++ packages/redboot/current/src/flash.c 26 Aug 2005 02:14:53 -0000 @@ -909,6 +909,10 @@ fis_create(int argc, char *argv[]) break; } } + if (i >= fisdir_size/sizeof(*img)) { + diag_printf("Can't find an empty slot in FIS directory!\n"); + return; + } } if (!no_copy) { // Safety check - make sure the address range is not within the code we're running