bayonne-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bayonne-devel] Patch to 1.2.14pl2


From: Tristan
Subject: Re: [Bayonne-devel] Patch to 1.2.14pl2
Date: Tue, 16 May 2006 15:56:22 +0200
User-agent: Thunderbird 1.5.0.2 (X11/20060501)

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
address@hidden
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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]