Closed
Description
Area(s) with this issue?
No response
Describe the issue
This occurs in VS22, not tested with debug on VC6.
There is code within PartitionManager.cpp and OpenContain.cpp where empty iterators are being dereferenced.
PartitionManager.cpp - 5491 - dereferencing iterator of empty container - casues STL library assert under debug.
OpenContain.cpp - 1288 - dereferencing iterator of empty container - casues STL library assert under debug.
The code is assuming a null returning iterator to control logic. Some guards around this code checking the size of the container may be required.
This is throwing STL library asserts when under DEBUG.
This is likely a hangover from the use of STLPORT style container classes.
Steps to reproduce
Run Generals under debug in VS22
Attachments
No response