Fix segmentation fault when reading energy terms
authorPaul Bauer <paul.bauer.q@gmail.com>
Fri, 5 Jun 2020 12:46:17 +0000 (14:46 +0200)
committerPaul Bauer <paul.bauer.q@gmail.com>
Fri, 5 Jun 2020 12:48:17 +0000 (14:48 +0200)
commitffc9815e4461dd34424f5b0ba2cd36552be46fc6
tree9a4adf7aeaafae789021166556c7aab31f1bf917
parent667580fc18a842da875fbad9f170ff56da316333
Fix segmentation fault when reading energy terms

While trying to read the names from the file, it could read past the
allocation if the number of terms was smaller than F_NRE.

Fixes #3547

Change-Id: I978cdedaac5e52b10cee02b05e90851102eeb2bd
docs/release-notes/2020/2020.3.rst
src/gromacs/gmxana/gmx_lie.cpp