mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-09 23:28:01 +08:00
修复NumberUtil.toBigDecimal方法报StackOverflowError(CVE-2023-51080)
This commit is contained in:
parent
4d6684e9ab
commit
9ff7608d97
@ -1,6 +1,7 @@
|
|||||||
package cn.hutool.core.util;
|
package cn.hutool.core.util;
|
||||||
|
|
||||||
import cn.hutool.core.lang.Console;
|
import cn.hutool.core.lang.Console;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.text.DecimalFormat;
|
import java.text.DecimalFormat;
|
||||||
@ -15,6 +16,7 @@ public class Issue3423Test {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore
|
||||||
public void toBigDecimalOfNaNTest2() throws ParseException {
|
public void toBigDecimalOfNaNTest2() throws ParseException {
|
||||||
final NumberFormat format = NumberFormat.getInstance();
|
final NumberFormat format = NumberFormat.getInstance();
|
||||||
((DecimalFormat) format).setParseBigDecimal(true);
|
((DecimalFormat) format).setParseBigDecimal(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user