未验证 提交 8552252f 编写于 作者: D dapan1121 提交者: GitHub

Merge pull request #18316 from taosdata/fix/TD-20573

fix: [ASAN] devive by zero
......@@ -24,6 +24,8 @@ static double tlog2(double v, double base) {
return a;
} else if (isnan(b) || isinf(b)) {
return b;
} else if (b == 0) {
return INFINITY;
} else {
return a / b;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册