id summary reporter owner description type status priority milestone component version severity resolution keywords cc 1002 assertion failures with VS2017 / VS2019 dbaston geos-devel@… "Reported by Asa Packer: > If I build in Debug mode, with either VS2017 or VS2019, I get tons of assertion failures when I do ctest. They all come from line 115 of MonotoneChainBuilder.cpp, which on the last time through the loop causes an access of an element one past the end of a std::vector. Even if I ignore the assertion failures, the tests show as fails because the C runtime considers these to be fatal errors. Proposed fix: {{{ --- geos-3.8.0/src/index/chain/MonotoneChainBuilder.cpp +++ geos-3.8.0/src/index/chain/MonotoneChainBuilder.cpp @@ -111,8 +111,10 @@ } } ++last; - prev = curr; - curr = &pts[last]; + if (last < npts) { + prev = curr; + curr = &pts[last]; + } } }}} " defect closed major 3.8.1 Default 3.8.0 Unassigned fixed