[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tlf-devel] tlf segfault
From: |
Thomas Beierlein |
Subject: |
Re: [Tlf-devel] tlf segfault |
Date: |
Tue, 20 Oct 2009 20:02:17 +0200 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
Here comes another buffer overflow. These time from makelogline() routine.
The patch below fixes it.
73, de Tom DL1JBE
--- src/makelogline.c.orig 2009-10-20 16:46:41.000000000 +0000
+++ src/makelogline.c 2009-10-20 16:47:49.000000000 +0000
@@ -387,9 +387,8 @@
strcat (logline4, " ");
}
-strcat (logline4, " " );
-
-logline4[80]='\0'; /* just in case... */
+ /* fill rest of line */
+ strncat (logline4, " ", 80-strlen(logline4));
return (0);
}
--
"Do what is needful!"
Ursula LeGuin: Earthsea
--