View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0027426 | Open CASCADE | OCCT:Application Framework | public | 2016-04-25 12:29 | 2020-12-19 15:22 |
Reporter | Assigned To | bugmaster | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 7.0.0 | ||||
Target Version | 7.6.0 | Fixed in Version | 7.6.0 | ||
Summary | 0027426: FSD_BinaryFile: Assignment to a temporary handle variable | ||||
Description | The line 689 of the current version of the file FSD_BinaryFile.cxx looks like this: iData->ReadArray() = new Storage_HPArray(1, theData->NumberOfObjects()); But the method ReadArray() of the class Storage_InternalData returns handle by value. So, this assignment will no take any effect, and the logic of the code becomes ill. This code was integrated with the fix to the bug #26229. | ||||
Steps To Reproduce | Dear MPV, could you review please: http://vm-jenkins-test-12.nnov.opencascade.com:8080/view/CR27426-master-VRO/view/COMPARE/ | ||||
Tags | No tags attached. | ||||
Test case number | Not required | ||||
|
This code seems to be dead: apart of apparent bug in initialization of a field, another problem is that this field (Storage_InternalData::myReadArray, accessed by method ReadArray()) is nowhere used outside of FSD_BinaryFile::ReadCompleteInfo(), and there is no known test cases when that code using it is activated... This is to be investigated further. |
|
I'm assigning this ticket to you Sergey because ibs is no longer in the company. I don't even know who is it :) |
|
Branch CR27426 has been created by vro. SHA-1: 7d277c8085f177d42fe94163f74e4e2bf69aed2f Detailed log of new commits: Author: Vlad Romashko Date: Mon Dec 14 13:18:27 2020 +0300 0027426: FSD_BinaryFile: Assignment to a temporary handle variable A reference is added to the returning object of the method Storage_InternalData::ReadArray(). Modified files: - Storage_InternalData.hxx OCCT: CR27426 Products: nothing |
|
Reviewed OCCT branch: CR27426 Products branch: NOTHING |
|
Vlad, have you considered a comment left by Andrey, that the code seems nowhere used / not covered by any tests? |
|
Combination - OCCT branch : IR-2020-12-18 master SHA - 04114fd201c20efe9fbe85f00bec9a99ae3747ad a206de37fbfa0bf71bd534ae47192bbec23b8522 Products branch : IR-2020-12-18 SHA - 290e5c74e8fef71947cadf90acb8e43c81ed10a1 was compiled on Linux, MacOS and Windows platforms and tested in optimize mode. Number of compiler warnings: No new/fixed warnings Regressions/Differences/Improvements: No regressions/differences CPU differences: Debian80-64: OCCT Total CPU difference: 17709.570000000054 / 17744.450000000124 [-0.20%] Products Total CPU difference: 12258.480000000121 / 12330.210000000125 [-0.58%] Windows-64-VC14: OCCT Total CPU difference: 19272.796875 / 19429.1875 [-0.80%] Products Total CPU difference: 13712.859375 / 13755.5 [-0.31%] Image differences : No differences that require special attention Memory differences : No differences that require special attention |
|
Branch CR27426 has been deleted by inv. SHA-1: 7d277c8085f177d42fe94163f74e4e2bf69aed2f |
occt: master c6685c65 2020-12-14 10:18:27 Committer: bugmaster Details Diff |
0027426: FSD_BinaryFile: Assignment to a temporary handle variable A reference is added to the returning object of the method Storage_InternalData::ReadArray(). Modified files: - Storage_InternalData.hxx OCCT: CR27426 Products: nothing |
Affected Issues 0027426 |
|
mod - src/Storage/Storage_InternalData.hxx | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-04-25 12:29 |
|
New Issue | |
2016-04-25 12:29 |
|
Assigned To | => mpv |
2016-04-25 12:30 |
|
Assigned To | mpv => ibs |
2016-09-23 12:20 |
|
Assigned To | ibs => ski |
2016-09-23 12:20 |
|
Status | new => assigned |
2016-11-22 11:14 | kgv | Assigned To | ski => ibs |
2016-11-22 12:07 |
|
Note Added: 0060668 | |
2016-11-22 12:07 |
|
Target Version | 7.1.0 => 7.2.0 |
2017-07-27 10:38 |
|
Target Version | 7.2.0 => 7.4.0 |
2019-09-04 12:58 |
|
Target Version | 7.4.0 => 7.5.0 |
2020-09-10 18:00 |
|
Note Added: 0094400 | |
2020-09-10 18:00 |
|
Assigned To | ibs => szy |
2020-09-10 18:00 |
|
Target Version | 7.5.0 => 7.6.0 |
2020-09-21 09:04 |
|
Assigned To | szy => mpv |
2020-12-14 13:18 | git | Note Added: 0097572 | |
2020-12-14 15:21 | vro | Status | assigned => resolved |
2020-12-14 15:21 | vro | Steps to Reproduce Updated | |
2020-12-14 15:33 |
|
Note Added: 0097576 | |
2020-12-14 15:33 |
|
Assigned To | mpv => bugmaster |
2020-12-14 15:33 |
|
Status | resolved => reviewed |
2020-12-14 16:42 | kgv | Note Added: 0097579 | |
2020-12-19 14:48 | bugmaster | Note Added: 0097738 | |
2020-12-19 14:48 | bugmaster | Status | reviewed => tested |
2020-12-19 14:53 | bugmaster | Test case number | => Not required |
2020-12-19 15:06 | bugmaster | Changeset attached | => occt master c6685c65 |
2020-12-19 15:06 | bugmaster | Status | tested => verified |
2020-12-19 15:06 | bugmaster | Resolution | open => fixed |
2020-12-19 15:22 | git | Note Added: 0097781 |