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:
Inaam Rana 2011-12-21 21:33:13 -05:00
parent b4864c8f8a
commit 3953b48971
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ ut_rnd_interval(
rnd = ut_rnd_gen_ulint();
return(low + (rnd % (high - low + 1)));
return(low + (rnd % (high - low)));
}
/*************************************************************

View File

@ -114,7 +114,7 @@ ut_rnd_interval(
rnd = ut_rnd_gen_ulint();
return(low + (rnd % (high - low + 1)));
return(low + (rnd % (high - low)));
}
/*********************************************************//**