Prevent writing to unallocated memory in mk_specbonds
authorVedran Miletić <vedran@miletic.net>
Tue, 21 Jun 2016 13:53:42 +0000 (15:53 +0200)
committerVedran Miletić <vedran@miletic.net>
Tue, 21 Jun 2016 16:01:16 +0000 (18:01 +0200)
commitfbc99c75abe169b792f53ddceecfe1e9226d199f
tree345b3b272d847ee212e7540882138d3a53972b91
parent9680c976dd63a2f8615966b34a2a3d73dba18ffa
Prevent writing to unallocated memory in mk_specbonds

Stop creating new specbonds after at most nspec bonds have been created
to prevent writing to unallocated memory.

Change-Id: I53f9d20059915e7fba8767b92d92fa751e9165e3
src/gromacs/gmxpreprocess/specbond.c