Commit 2cdcb18b authored by Inaam Rana's avatar Inaam Rana

Bug#11866367 FPE WHEN SETTING INNODB_SPIN_WAIT_DELAY

rb://865
approved by: Jimmy

Integer overflow causes division by zero.
parent 9cce451c
......@@ -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)));
}
/*********************************************************//**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment