Hmm..... here is a stab in the dark. Try the attached patch...
-- Øyvind Harboe Embedded software and hardware consulting services http://www.zylin.com
Index: C:/workspace/openocd/src/flash/flash.c =================================================================== --- C:/workspace/openocd/src/flash/flash.c (revision 2483) +++ C:/workspace/openocd/src/flash/flash.c (working copy) @@ -1091,6 +1091,12 @@ /* allocate buffer */ buffer = malloc(run_size); + if (buffer == NULL) + { + LOG_ERROR("Out of memory allocating %d bytes", run_size); + return ERROR_FAIL; + } + buffer_size = 0; /* read sections to the buffer */
_______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development