View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0009381 | VTK | (No Category) | public | 2009-08-06 02:28 | 2016-08-12 09:55 | ||||
Reporter | akiyama | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0009381: memory leak and invalid acess in vtkXMLDataElement::RemoveAttribute | ||||||||
Description | pointer is overwrited. And, the pointer that should not be erased has been deleted. --- vtkXMLDataElement.cxx 2008-11-20 17:08:08.000000000 +0900 +++ vtkXMLDataElement.cxx 2009-08-01 00:30:23.181167700 +0900 @@ -91,15 +91,14 @@ { if(!strcmp(this->AttributeNames[i], name)) { + delete [] this->AttributeNames[i]; + delete [] this->AttributeValues[i]; // Shift the other attributes for (j = i; j < this->NumberOfAttributes - 1; ++j) { this->AttributeNames[j] = this->AttributeNames[j + 1]; this->AttributeValues[j] = this->AttributeValues[j + 1]; } - // Delete the last one - delete [] this->AttributeNames[this->NumberOfAttributes - 1]; - delete [] this->AttributeValues[this->NumberOfAttributes - 1]; --this->NumberOfAttributes; // this->AttributesSize is unchanged return; | ||||||||
Tags | No tags attached. | ||||||||
Project | |||||||||
Type | |||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0037094) Kitware Robot (administrator) 2016-08-12 09:55 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2009-08-06 02:28 | akiyama | New Issue | |
2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
2016-08-12 09:55 | Kitware Robot | Note Added: 0037094 | |
2016-08-12 09:55 | Kitware Robot | Status | expired => closed |
2016-08-12 09:55 | Kitware Robot | Resolution | open => moved |
2016-08-12 09:55 | Kitware Robot | Assigned To | => Kitware Robot |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |