bugCERTI - Bugs: bug #19534, XmlParser Bug report

 
 

bug #19534: XmlParser Bug report

Submitted by:  moosefly <moosefly>
Submitted on:  Fri 06 Apr 2007 01:17:08 AM UTC  
 
Category: CERTISeverity: 3 - Normal
Item Group: Software errorStatus: Ready For Test
Privacy: PublicAssigned to: Eric NOULARD <erk>
Open/Closed: ClosedRelease: 3.2.1
Reproducibility: Every TimeFixed Release: 3.2.4

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 04 May 2007 12:56:38 PM UTC, comment #1:

Ok now fixed in CVS.

In fact
RootObject::addRoutingSpace(const RoutingSpace &rs)

stores a copy of the argument and not a reference,
thus modifying RoutingSpace object after
it has been added has not effect on the RootObject.

You may test if you have a CVS access.

Eric NOULARD <erk>
Project AdministratorIn charge of this item.
Fri 06 Apr 2007 01:17:08 AM UTC, original submission:

libCERTI/XmlParser.cc :

void
XmlParser::parseRoutingSpace()
{
D[pdTrace] << "New Routing Space" << endl ;

DimensionHandle freeDimensionHandle = 1 ;
xmlNodePtr prev = cur ;
RoutingSpace current ;
current.setHandle(freeSpaceHandle++);
current.setName((char *) xmlGetProp(cur, ATTRIBUTE_NAME));
--- root->addRoutingSpace(current);

// Dimensions
cur = cur->xmlChildrenNode ;
while (cur != NULL) {
if ((!xmlStrcmp(cur->name, NODE_DIMENSION))) {
Dimension dimension(freeDimensionHandle++);
dimension.setName((char *) xmlGetProp(cur, ATTRIBUTE_NAME));
current.addDimension(dimension);
}
cur = cur->next ;
}
+++ root->addRoutingSpace(current);
cur = prev ;
}

ps:
the routingspace should be added after all dimensions have been added .

moosefly <moosefly>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by erk (Posted a comment)
  • -unavailable- added by moosefly (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 19 Nov 2007 02:28:46 PM UTCerkOpen/ClosedOpen=>Closed
    Fri 04 May 2007 02:13:22 PM UTCerkFixed ReleaseNextRelease=>3.2.4
    Fri 04 May 2007 12:56:38 PM UTCerkStatusNone=>Ready For Test
      Assigned toNone=>erk
      ReleaseNone=>3.2.1
      Fixed ReleaseNone=>NextRelease

    Back to the top


    Powered by Savane 3.1-cleanup1