git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14086 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -756,7 +756,7 @@ void Force::bounds(char *str, int nmax, int &nlo, int &nhi, int nmin)
|
|||||||
nhi = atoi(ptr+1);
|
nhi = atoi(ptr+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nlo < nmin || nhi > nmax)
|
if (nlo < nmin || nhi > nmax || nlo > nhi)
|
||||||
error->all(FLERR,"Numeric index is out of bounds");
|
error->all(FLERR,"Numeric index is out of bounds");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -790,7 +790,7 @@ void Force::boundsbig(char *str, bigint nmax, bigint &nlo, bigint &nhi,
|
|||||||
nhi = ATOBIGINT(ptr+1);
|
nhi = ATOBIGINT(ptr+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nlo < nmin || nhi > nmax)
|
if (nlo < nmin || nhi > nmax || nlo > nhi)
|
||||||
error->all(FLERR,"Numeric index is out of bounds");
|
error->all(FLERR,"Numeric index is out of bounds");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user