What Value do you recommend for TGI_BUF ?
It seems the problem still applies to bayonne 1.2.15 ( seems like it
wasn't fixed ) ...
Anthony DeRobertis a écrit :
Anthony DeRobertis wrote:
One of the buffers used to execute TGIs is too small leading to a a
buffer overflow on the stack (and, of course, a crash). This patch
fixes it.
Ugh, mailing list software seems to have stripped it....
diff -rdbU3 bayonne-1.2.14pl2/server/dso.cpp
bayonne-1.2.14pl2.new/server/dso.cpp
--- bayonne-1.2.14pl2/server/dso.cpp 2003-02-27 11:33:17.000000000
-0500
+++ bayonne-1.2.14pl2.new/server/dso.cpp 2006-05-10
16:01:58.000000000 -0400
@@ -701,7 +701,7 @@
{
TGI *tgi = TGI::first;
char *ext;
- char buffer[512];
+ char buffer[TGI_BUF];
strcpy(buffer, cmd);
cmd = strtok_r(buffer, " \t\n", &ext);
ext = strrchr(cmd, '.');
Hopefully, it still applies after being copy & pasted into the body of
an email.
_______________________________________________
Bayonne-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bayonne-devel
--
-------------------------
Tristan Mahé
Service Technique Audio/SMS
Télémaque - Nice
Tel: 04.93.97.71.76
Port: 06.85.19.59.74
_______________________________________________
Bayonne-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bayonne-devel