修复NumberUtil.toBigDecimal方法报StackOverflowError(CVE-2023-51080)

This commit is contained in:
Looly 2024-01-11 12:08:39 +08:00
parent 9ff7608d97
commit 2a66698ef3

View File

@ -2226,7 +2226,7 @@ public class NumberUtil {
}
// FloatDouble等有精度问题转换为字符串后再转换
return toBigDecimal(number.toString());
return new BigDecimal(number.toString());
}
/**