On Wed, 2009-07-08 at 14:43 +0200, Øyvind Harboe wrote:
> On Wed, Jul 8, 2009 at 2:22 PM, Thomas A. Moulton<[email protected]> wrote:
> > On Wed, 2009-07-08 at 09:41 +0200, Øyvind Harboe wrote:
> >> I have an Aduc7024 here that I can test with.
> >>
> >> Could you provide instructions on how to reproduce the crash on
> >> that target?
> >>
> >>
> >
> > It works without crashing now!
>
> With or without the patch?
>
>
svn head plus
Index: src/flash/flash.c
===================================================================
--- src/flash/flash.c (revision 2498)
+++ 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 */
Should I try the other patch you sent?
Tom
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development