MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0000693 | VTK | (No Category) | public | 2004-03-22 11:23 | 2013-04-05 19:57 |
| Reporter | Marcel Jackowski | ||||
| Assigned To | Zhanping Liu | ||||
| Priority | urgent | Severity | major | Reproducibility | always |
| Status | closed | Resolution | open | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | |||||
| Type | |||||
| Summary | 0000693: vtkHyperStreamline | ||||
| Description | This class seg faults if pointer sPtr is accessed after a call to InsertNextHyperPoint if the array of points gets resized. Below follows the snippet where crashing typically occur. excerpt from line 531: sNext = this->Streamers[ptId].InsertNextHyperPoint(); if ( cell->EvaluatePosition(xNext, closestPoint, sNext->SubId, sNext->P, dist2, w) ) { //integration still in cell for (i=0; i<3; i++) { sNext->X[i] = closestPoint[i]; } sNext->CellId = sPtr->CellId; (crashes if array is resized - sPtr is not valid anymore) sNext->SubId = sPtr->SubId; } else ... A temporary fix can be done by restoring the sPtr pointer after insertion of new point: // get a hold of the number of points index = this->Streamers[ptId].GetNumberOfPoints(); // insert next point sNext = this->Streamers[ptId].InsertNextHyperPoint(); // make sure sPtr is still valid after possible Resizing sPtr = this->Streamers[ptId].GetHyperPoint(index-1); | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2008-09-23 11:28 | Berk Geveci | Assigned To | Mathieu Malaterre => Zhanping Liu | ||
| 2008-10-02 11:43 | Zhanping Liu | Note Added: 0013707 | |||
| 2008-10-02 11:43 | Zhanping Liu | Note Added: 0013708 | |||
| 2008-10-02 11:45 | Zhanping Liu | Status | tabled => @80@ | ||
| 2008-10-02 11:45 | Zhanping Liu | Description Updated | |||
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) | ||
| 2013-04-05 19:57 | Berk Geveci | Status | customer review => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||