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
@mloskot You are right this is a off-by-one since the node_array will sometimes contain a (superfluous) sentinel node.
Apart from crashes I don't think this should trigger any bugs, since we never rely on the presence of that sentinel node. I will prepare a fix for this and include it in a bug fix release. Thanks for spotting this. 💯
Version: 5.12.0 and current master
During contraction step of the data processing, I observe situation which may indicate a bug, somewhere.
I'm hoping to explain it clearly enough:
The
osrm::contractor::contractExcludableGraph
function applies this filteringwhere the
Filter
is thisInside
Filter
, I seeis_shared_core.size() == 16142
number_of_nodes == 16142
node_array.size() == 16143
and eventually,
if (filter(16142))
is tested leading tois_shared_core
out of range access.This can be easily reproduced with
placed in the beginning of the
Filter
function.So, with this print-based-debugging patch:
I see the difference in sizes too:
That is optimised build, so the assert does not make the test crash, but shouldn't it fail.
The text was updated successfully, but these errors were encountered: