-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG]大数解析报错 #2672
Comments
为什么有这么大的exp数值,你这个是测试数据还是业务数据? 目前做了限制最大1023。做这个限制是防止恶意输入做DOS攻击。 |
我们上游系统的数据, 这个值是脏数据, 可以忽略, 但现在解析的时候没有时机处理. 希望能加个开关忽略掉值或者强制解析. |
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.52-SNAPSHOT/ |
yanxutao89
added a commit
that referenced
this issue
Jun 7, 2024
wenshao
pushed a commit
that referenced
this issue
Jun 7, 2024
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
问题描述
fastjson2 2.0.51
报错:
Exception in thread "main" com.alibaba.fastjson2.JSONException: too large exp value : 1294
at com.alibaba.fastjson2.JSONReaderUTF8.readNumber0(JSONReaderUTF8.java:5458)
at com.alibaba.fastjson2.JSONReader.readNumber(JSONReader.java:1004)
at com.alibaba.fastjson2.JSONReader.read(JSONReader.java:2087)
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:348)
在 fastjson1 中 token 可被解析为 BigDecimal
The text was updated successfully, but these errors were encountered: