correct out-of-bounds array access in RanMars::select_subset()

This commit is contained in:
Axel Kohlmeyer 2020-01-31 09:51:23 -05:00
parent 82286702cb
commit 31c4833707
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 2 additions and 2 deletions

View File

@ -183,8 +183,8 @@ void RanMars::select_subset(bigint ntarget, int nmine, int *mark, int *next)
int mode,index,oldindex,newvalue,nflip,which,niter;
int active[2],first[2],last[2];
int newactive[2],newfirst[2],newlast[2];
bigint nmark,nactive,nactiveall,nflipall,bnflip;
bigint activeall[2],bsum[3],bsumall[3];
bigint nmark,nactive,nactiveall,nflipall;
bigint activeall[2],bsum[4],bsumall[4];
double thresh;
active[0] = nmine;