View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0021954 | Community | OCCT:Foundation Classes | public | 2010-08-11 11:33 | 2016-01-07 21:57 |
| Reporter | Assigned To | ||||
| Priority | normal | Severity | trivial | ||
| Status | closed | Resolution | no change required | ||
| OS | All | ||||
| Fixed in Version | 7.0.0 | ||||
| Summary | 0021954: Problem of copying object to itself reported by Valgrind in SortTools_QuickSort | ||||
| Description | The problem is reported by OCCT user Jiangtao Hu on 2009-04-07 on the Projects / Contributions section of opencascade.org, see http://www.opencascade.org/org/community/projects/?project_id=228: ---- Run opencascade against valgrind, it gives error on overlapping memory for SortTools_QuickSort.gxx : 32. I added a check at line 32: 32 if(Middle != (Right - 1)) ----Added check 33 Exchange(TheArray(Middle), TheArray(Right - 1)); The valgrind errors went away. Jane ----- The implementation of this function needs revision: it seems that it does not guarantee that these exchanged elements will be exchanges back in all situations. | ||||
| Tags | No tags attached. | ||||
| Test case number | |||||
|
|
|
The proposed solution seems acceptable because prevents exchange item with itself. |
|
2012-01-20 18:54 developer |
SortTools_QuickSort.gxx (1,698 bytes) |
|
|
Corrected file is attached |
|
|
Has to be checked and closed |
|
|
SortTools package has been eliminated in context of 0024859 |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2010-10-06 19:01 | bugmaster | Status | closed => assigned |
| 2010-10-06 19:01 | bugmaster | Resolution | suspended => @0@ |
| 2010-10-06 19:01 | bugmaster | Assigned To | bugmaster => abv |
| 2011-04-07 18:16 | bugmaster | Assigned To | abv => szy |
| 2011-04-28 17:59 |
|
Assigned To | szy => vsv |
| 2011-08-02 11:23 | bugmaster | Category | OCCT:FDC => OCCT:Foundation Classes |
| 2012-01-20 18:52 |
|
Note Added: 0019216 | |
| 2012-01-20 18:52 |
|
Status | assigned => resolved |
| 2012-01-20 18:54 |
|
File Added: SortTools_QuickSort.gxx | |
| 2012-01-20 18:54 |
|
Note Added: 0019217 | |
| 2012-01-24 16:55 |
|
Assigned To | vsv => abv |
| 2012-01-24 16:55 |
|
Note Added: 0019255 | |
| 2012-01-24 16:55 |
|
Status | resolved => assigned |
| 2016-01-07 21:57 |
|
Note Added: 0049719 | |
| 2016-01-07 21:57 |
|
Status | assigned => closed |
| 2016-01-07 21:57 |
|
Resolution | open => no change required |
| 2016-01-07 21:57 |
|
Fixed in Version | EMPTY => 7.0.0 |