MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0030720Open CASCADE[OCCT] OCCT:Codingpublic2019-05-20 12:372019-05-21 18:41
Reportertizmaylo 
Assigned Tokgv 
PrioritynormalSeverityminor 
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target Version[OCCT] 7.4.0*Fixed in Version 
Summary0030720: Coding - fix HashCode() function problems that are not resolved with 30550
DescriptionThere are some problems that were not resolved with 0030550:

  • undefined behavior caused by left shift operations in TopLoc_Location::HashCode() function is not fixed (look at the places where the local variable depth is used);

  • HashCode() functions are not fixed in OCC Products;

  • HashCode() function overload for unsigned int behaves differently on 32-bit and 64-bit platforms (on 32-bit platform it is disabled via SFINAE and HashCode() function overload for std::size_t type is used because std::size_t == unsigned int).


To solve the problem with other projects it may be useful to add asserts to methods of map classes that are dealing with hash codes to check their values to be strictly one-based (not zero-based).
TagsNo tags attached.
Test case number
Attached Files

- Relationships
child of 0030550verifiedbugmaster Community Coding - Integer overflow in Standard_CString HashCodes 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2019-05-20 12:37 tizmaylo New Issue
2019-05-20 12:37 tizmaylo Assigned To => kgv
2019-05-20 12:42 kgv Relationship added child of 0030550
2019-05-20 12:43 kgv Description Updated View Revisions
2019-05-21 18:41 tizmaylo Description Updated View Revisions


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker