[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
certi RTIA/FederationManagement.cc RTIG/Federat...
From: |
certi-cvs |
Subject: |
certi RTIA/FederationManagement.cc RTIG/Federat... |
Date: |
Fri, 21 Dec 2007 14:29:42 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: ROUSSELOT <rousse> 07/12/21 14:29:42
Modified files:
RTIA : FederationManagement.cc
RTIG : FederationsList.cc
libCERTI : Message.cc
Log message:
bug #21851 correction. Bad strlen in Message,FederationsList and
federationManagement
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/RTIA/FederationManagement.cc?cvsroot=certi&r1=3.38&r2=3.39
http://cvs.savannah.gnu.org/viewcvs/certi/RTIG/FederationsList.cc?cvsroot=certi&r1=3.47&r2=3.48
http://cvs.savannah.gnu.org/viewcvs/certi/libCERTI/Message.cc?cvsroot=certi&r1=3.43&r2=3.44
Patches:
Index: RTIA/FederationManagement.cc
===================================================================
RCS file: /sources/certi/certi/RTIA/FederationManagement.cc,v
retrieving revision 3.38
retrieving revision 3.39
diff -u -b -r3.38 -r3.39
--- RTIA/FederationManagement.cc 17 Dec 2007 16:01:24 -0000 3.38
+++ RTIA/FederationManagement.cc 21 Dec 2007 14:29:41 -0000 3.39
@@ -18,7 +18,7 @@
// along with this program ; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// $Id: FederationManagement.cc,v 3.38 2007/12/17 16:01:24 rousse Exp $
+// $Id: FederationManagement.cc,v 3.39 2007/12/21 14:29:41 rousse Exp $
// ----------------------------------------------------------------------------
#include <config.h>
@@ -141,7 +141,7 @@
if (reponse.exception == e_NO_EXCEPTION)
{
- _nom_federation = new char[strlen(theName)] ;
+ _nom_federation = new char[strlen(theName)+1] ;
strcpy(_nom_federation, theName);
_numero_federation = reponse.federation ;
_est_createur_federation = true ;
@@ -948,4 +948,4 @@
}} // namespace certi/rtia
-// $Id: FederationManagement.cc,v 3.38 2007/12/17 16:01:24 rousse Exp $
+// $Id: FederationManagement.cc,v 3.39 2007/12/21 14:29:41 rousse Exp $
Index: RTIG/FederationsList.cc
===================================================================
RCS file: /sources/certi/certi/RTIG/FederationsList.cc,v
retrieving revision 3.47
retrieving revision 3.48
diff -u -b -r3.47 -r3.48
--- RTIG/FederationsList.cc 11 Dec 2007 16:44:19 -0000 3.47
+++ RTIG/FederationsList.cc 21 Dec 2007 14:29:41 -0000 3.48
@@ -18,7 +18,7 @@
// along with this program ; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// $Id: FederationsList.cc,v 3.47 2007/12/11 16:44:19 rousse Exp $
+// $Id: FederationsList.cc,v 3.48 2007/12/21 14:29:41 rousse Exp $
// ----------------------------------------------------------------------------
#include <config.h>
@@ -348,9 +348,8 @@
nb_regulators = federation->getNbRegulators();
is_syncing = federation->isSynchronizing();
// We need federation FEDid
- FED_Filename = new char[strlen(federation->getFEDid()+1)];
+ FED_Filename = new char[strlen(federation->getFEDid())+1];
strcpy(FED_Filename,federation->getFEDid());
-
#ifdef FEDERATION_USES_MULTICAST
comm_mc = federation->MCLink ;
#endif
@@ -1515,5 +1514,5 @@
}} // certi::rtig
-// EOF $Id: FederationsList.cc,v 3.47 2007/12/11 16:44:19 rousse Exp $
+// EOF $Id: FederationsList.cc,v 3.48 2007/12/21 14:29:41 rousse Exp $
Index: libCERTI/Message.cc
===================================================================
RCS file: /sources/certi/certi/libCERTI/Message.cc,v
retrieving revision 3.43
retrieving revision 3.44
diff -u -b -r3.43 -r3.44
--- libCERTI/Message.cc 17 Dec 2007 16:01:25 -0000 3.43
+++ libCERTI/Message.cc 21 Dec 2007 14:29:41 -0000 3.44
@@ -585,7 +585,7 @@
strcpy(exceptionReason, msg.exceptionReason);
strcpy(federateName, msg.federateName);
- federationName = new char[strlen(msg.federationName+1)] ;
+ federationName = new char[strlen(msg.federationName)+1] ;
strcpy(federationName, msg.federationName);
federate = msg.federate ;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- certi RTIA/FederationManagement.cc RTIG/Federat...,
certi-cvs <=