Ensure that gmx covar does not access indices out of bounds
commit875711494b5a6b0af46df520457c57f7218b32bf
authorChristian Blau <cblau.mail@gmail.com>
Wed, 21 Oct 2020 15:34:11 +0000 (21 15:34 +0000)
committerPaul Bauer <paul.bauer.q@gmail.com>
Wed, 21 Oct 2020 15:34:11 +0000 (21 15:34 +0000)
tree55796641fed9da4343c4f92f728f3fa11336d8ba
parentf3df75d6ac6c1b7337e1c7f6aa8621749222c6d7
Ensure that gmx covar does not access indices out of bounds

Exit early with message to user if requested analysis or fitting
indices to not match with number of atoms in structure or
trajectory file instead of returning with a segfault.

Closes #3737
src/gromacs/gmxana/gmx_covar.cpp