We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当字符串存在大量需要转义字符时出现数组越界异常
请填写以下信息:
如何操作可以重现该问题:
StringBuilder sb = new StrinqBuilder(); for(int i =0;i<8000;i++) { sb .append("A"); } byte[] temp = sb.tostring ().getBytes ("UTF-8") ; for(int i =0;i<2000;i++) { temp[i] =0x01; } try{ System.out.printIn(JSON.toJSONString(new String(temp,"UTE-8"))) ; catch(Exception e) { e.printStackTrace(); }
正确序列化
The text was updated successfully, but these errors were encountered:
fix serialize special string, for issue #1025
71b7df7
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.22-SNAPSHOT/ 问题已修复,请帮忙用2.0.22-SNAPSHOT版本验证,2.0.22版本预计在元旦期间发布
Sorry, something went wrong.
验证了,没问题
https://github.com/alibaba/fastjson2/releases/tag/2.0.22 问题已修复,请用新版本
No branches or pull requests
问题描述
当字符串存在大量需要转义字符时出现数组越界异常
环境信息
请填写以下信息:
重现步骤
如何操作可以重现该问题:
期待的正确结果
正确序列化
The text was updated successfully, but these errors were encountered: