Fix out of bound vector access in vsites
authorRoland Schulz <roland@rschulz.eu>
Wed, 22 Sep 2021 04:49:39 +0000 (21:49 -0700)
committerRoland Schulz <roland.schulz@intel.com>
Wed, 22 Sep 2021 17:45:10 +0000 (17:45 +0000)
commit752e82827698f480fa2ca6ae2d5aa36a07d7a2b1
tree764c6f27770695a5dd46caef0c5848b3ed150a24
parentb4e8bef8d3195409a0c24300a3406c0fe30e8cf8
Fix out of bound vector access in vsites

operator[] is invalid for one past the last element. Using
the pointer to it as end-pointer is fine.

Found by Microsoft STL debug iterator.
src/programs/mdrun/tests/virtualsites.cpp