From b19d0e49c4262bc205536f2ba7f78a0a184f1814 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sun, 1 Sep 1996 16:37:00 +0000 Subject: realloc()ing a just freed pointer is a bad idea. Detected by: phkmalloc :-) --- comms/xcept/files/patch-af | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 comms/xcept/files/patch-af (limited to 'comms/xcept/files') diff --git a/comms/xcept/files/patch-af b/comms/xcept/files/patch-af new file mode 100644 index 000000000000..002dbba6106b --- /dev/null +++ b/comms/xcept/files/patch-af @@ -0,0 +1,10 @@ +--- xcept/script.c.orig Sun Sep 1 18:24:46 1996 ++++ xcept/script.c Sun Sep 1 18:32:08 1996 +@@ -809,7 +809,6 @@ + if(a->value == b->value) + return error("pc: %d - variables don't differ!\n",pc); + len = strlen(a->value) + strlen(b->value) + 1; +- free(a->value); + if(!(a->value = ralloc(a->value,len))) return errorp("realloc\n"); + strcat(a->value,b->value); + -- cgit v1.2.3