View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0030551 | Community | OCCT:Foundation Classes | public | 2019-03-09 17:58 | 2019-08-15 17:51 |
Reporter | galbramc | Assigned To | bugmaster | ||
Priority | normal | Severity | major | ||
Status | closed | Resolution | fixed | ||
Product Version | 7.3.0 | ||||
Target Version | 7.4.0 | Fixed in Version | 7.4.0 | ||
Summary | 0030551: Foundation Classes - Integer overflow in NCollection_CellFilter HashCode | ||||
Description | I compiled OCCT with the -fsanitize=undefined flag and got the following errors: src/NCollection/NCollection_CellFilter.hxx:328:25: runtime error: left shift of 79114230870873 by 21 places cannot be represented in type 'long int' src/NCollection/NCollection_CellFilter.hxx:328:25: runtime error: left shift of 79088553295872 by 21 places cannot be represented in type 'long int' I can provide a specific example string that reproduces this if needed. A simple fix is to change 'long aCode' to 'Standard_Size aCode', as well as the return value of the HashCode function. | ||||
Steps To Reproduce | Compile OCCT with a g++ newer than 4.9 with the -fsanitize=undefined compiler flag and run the test suite. | ||||
Tags | No tags attached. | ||||
Test case number | Not required | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2019-03-09 17:58 | galbramc | New Issue | |
2019-03-09 17:58 | galbramc | Assigned To | => abv |
2019-03-12 04:39 | galbramc | Assigned To | abv => kgv |
2019-03-12 14:04 | kgv | Assigned To | kgv => abv |
2019-03-12 14:04 | kgv | Summary | Integer overflow in NCollection_CellFilter HashCode => Foundation Classes - Integer overflow in NCollection_CellFilter HashCode |
2019-03-12 14:05 | kgv | Relationship added | child of 0030557 |
2019-03-20 08:37 | kgv | Assigned To | abv => tizmaylo |
2019-03-20 08:37 | kgv | Status | new => assigned |
2019-04-22 11:33 |
|
Target Version | => 7.4.0 |
2019-04-22 11:36 |
|
Note Added: 0083920 | |
2019-04-22 11:37 |
|
Assigned To | tizmaylo => bugmaster |
2019-04-22 11:37 |
|
Status | assigned => feedback |
2019-04-22 11:37 |
|
Note Edited: 0083920 | |
2019-04-30 14:50 | kgv | Relationship added | related to 0030550 |
2019-05-06 15:43 | bugmaster | Note Added: 0084196 | |
2019-05-06 15:43 | bugmaster | Status | feedback => verified |
2019-05-06 15:43 | bugmaster | Resolution | open => fixed |
2019-08-15 17:51 | bugmaster | Test case number | => Not required |