summaryrefslogtreecommitdiff
path: root/comms/xcept/files
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1996-09-01 16:37:00 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1996-09-01 16:37:00 +0000
commitb19d0e49c4262bc205536f2ba7f78a0a184f1814 (patch)
tree391f39fa7b591c94f7a37107125523b934afab64 /comms/xcept/files
parentXCept - a decoder for the CEPT protocol as it is in use in the Btx (diff)
realloc()ing a just freed pointer is a bad idea.
Detected by: phkmalloc :-)
Notes
Notes: svn path=/head/; revision=3732
Diffstat (limited to 'comms/xcept/files')
-rw-r--r--comms/xcept/files/patch-af10
1 files changed, 10 insertions, 0 deletions
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);
+