mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
修复NumberUtil.toBigDecimal方法报StackOverflowError(CVE-2023-51080)
This commit is contained in:
parent
9ff7608d97
commit
2a66698ef3
@ -2226,7 +2226,7 @@ public class NumberUtil {
|
||||
}
|
||||
|
||||
// Float、Double等有精度问题,转换为字符串后再转换
|
||||
return toBigDecimal(number.toString());
|
||||
return new BigDecimal(number.toString());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user