You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If we have successfully reached the target, expand from thereif(newBns.back() == _target.mNode.lock())
expansionPolicy(_target.mNode.lock(), _target.mPolicy, newBns);
Segfault is raised at newBns.back() when newBns is empty. According to cppreference, calling back on an empty container is undefined. I observed that this segfault is happened on Windows but not Ubuntu or Mac.
The text was updated successfully, but these errors were encountered:
This is actually a really easy fix. This is just an unhandled edge case where the linkage wasn't able to expand towards the target whatsoever. The current code incorrectly assumes that it was able to take at least one step towards the target. We just need to change the if-statement to if(newBns.size() > 0 && newBns.back() == _target.mNode.lock()). I'll make a pull request with the fix.
Linkage.cpp Ln:364
Segfault is raised at
newBns.back()
whennewBns
is empty. According to cppreference, calling back on an empty container is undefined. I observed that this segfault is happened on Windows but not Ubuntu or Mac.The text was updated successfully, but these errors were encountered: