-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
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
ArrayIndexOutOfBoundsException in appendStringSlowPath when serializing escaped characters #1441
Comments
agologan
added a commit
to Alfresco/alfresco-android-kotlin-api
that referenced
this issue
May 10, 2021
Character escaping in new serialization runtime contains a high priority bug which renders the lib unusable. Reverting to previous version. Ref: Kotlin/kotlinx.serialization#1441
qwwdfsad
added a commit
that referenced
this issue
May 11, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
An ArrayIndexOutOfBoundsException is thrown in appendStringSlowPath when serializing strings that contain many characters that wil be escaped in the generated JSON. It looks like this is caused by an insufficient
ensureAdditionalCapacity(string.length + 2)
inappendQuoted
To Reproduce
Expected behavior
String is successfully serialized as JSON, without error.
Environment
The text was updated successfully, but these errors were encountered: