Discovered via fuzzer runs, for potential values of a,b and p its possible for inverse_beta_cdf to potentially take a very long time doing calculating boost::math::quantile.
One such set of values is : invBetaCDF(1.14934e+09, 1.59161e+74, 0.546686).
Error Reproduction
Adding following test in ProbabilityTest.h hangs:
TEST_F(ProbabilityTest, invBetaCDF) {
const auto invBetaCDF = [&](std::optional<double> a,
std::optional<double> b,
std::optional<double> p) {
return evaluateOnce<double>("inverse_beta_cdf(c0, c1, c2)", a, b, p);
};
EXPECT_EQ(1.0, invBetaCDF(1.14934e+09, 1.59161e+74, 0.546686));
Description
Discovered via fuzzer runs, for potential values of a,b and p its possible for inverse_beta_cdf to potentially take a very long time doing calculating boost::math::quantile. One such set of values is : invBetaCDF(1.14934e+09, 1.59161e+74, 0.546686).
Error Reproduction
Adding following test in ProbabilityTest.h hangs:
Relevant logs
No response