Fix segmentation fault in do_dssp
commitf3c08f9310a2416e83e686c24170f329cdc7929f
authorPaul Bauer <paul.bauer.q@gmail.com>
Mon, 27 Apr 2020 11:46:33 +0000 (27 13:46 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 27 Apr 2020 13:49:02 +0000 (27 13:49 +0000)
treec3fdb04877db4f593f1dadc72468f8db74432eb4
parent3735615b3ed4bc140982b2bef84d2e13b9eb10dd
Fix segmentation fault in do_dssp

A matrix would be initial allocated with zero size, so that a
following call to increase the size of one element would lead to memory
corruption on a subsequent try to set a value in the matrix.

Fixes #3444

Change-Id: I1892c09a8aa4c2f92156f7b1a76623df9ac62e56
docs/release-notes/2020/2020.2.rst
src/gromacs/gmxana/gmx_do_dssp.cpp