INTEGRATION_thruster has undefined behavior potentially causing test flakiness #2291
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
We accept pull requests!
Environment
Description
std::vector::back
is potentially called on an empty vector in multiple places. This is regarded as undefined behavior. For example:gz-sim/test/integration/thruster.cc
Lines 335 to 340 in 926923f
The vector
modelPoses
is cleared followed byauto latest_pose = modelPoses.back();
The text was updated successfully, but these errors were encountered: