Bug#11866367 FPE WHEN SETTING INNODB_SPIN_WAIT_DELAY
rb://865 approved by: Jimmy Integer overflow causes division by zero.
This commit is contained in:
parent
b4864c8f8a
commit
3953b48971
@ -96,7 +96,7 @@ ut_rnd_interval(
|
||||
|
||||
rnd = ut_rnd_gen_ulint();
|
||||
|
||||
return(low + (rnd % (high - low + 1)));
|
||||
return(low + (rnd % (high - low)));
|
||||
}
|
||||
|
||||
/*************************************************************
|
||||
|
@ -114,7 +114,7 @@ ut_rnd_interval(
|
||||
|
||||
rnd = ut_rnd_gen_ulint();
|
||||
|
||||
return(low + (rnd % (high - low + 1)));
|
||||
return(low + (rnd % (high - low)));
|
||||
}
|
||||
|
||||
/*********************************************************//**
|
||||
|
Loading…
x
Reference in New Issue
Block a user