You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.ArrayIndexOutOfBoundsException: 3
at org.jcodings.transcode.Transcoding.transcodeRestartable0(Transcoding.java:172)
at org.jcodings.transcode.Transcoding.transcodeRestartable(Transcoding.java:105)
at org.jcodings.transcode.Transcoding.convert(Transcoding.java:86)
at org.jcodings.transcode.EConv.transSweep(EConv.java:236)
at org.jcodings.transcode.EConv.transConvNeedReport(EConv.java:300)
at org.jcodings.transcode.EConv.transConv(EConv.java:294)
at org.jcodings.transcode.EConv.convertInternal(EConv.java:410)
at org.jcodings.transcode.EConv.convert(EConv.java:452)
java.lang.ArrayIndexOutOfBoundsException: 186
at org.jcodings.transcode.TranscodeFunctions.funSoCp50220Encoder(TranscodeFunctions.java:528)
at org.jcodings.transcode.specific.Cp50220_encoder_Transcoder.startToOutput(Cp50220_encoder_Transcoder.java:45)
at org.jcodings.transcode.Transcoding.transcodeRestartable0(Transcoding.java:307)
at org.jcodings.transcode.Transcoding.transcodeRestartable(Transcoding.java:105)
at org.jcodings.transcode.Transcoding.convert(Transcoding.java:86)
at org.jcodings.transcode.EConv.transSweep(EConv.java:236)
at org.jcodings.transcode.EConv.transConvNeedReport(EConv.java:300)
at org.jcodings.transcode.EConv.transConv(EConv.java:294)
at org.jcodings.transcode.EConv.convertInternal(EConv.java:406)
at org.jcodings.transcode.EConv.convert(EConv.java:452)
The text was updated successfully, but these errors were encountered:
I took a look into the CP50220 issue and read through the relevant functions (org.jcodings.transcode.TranscodeFunctions#funSoCp50220Encoder, org.jcodings.transcode.TranscodeFunctions#funSoCp5022xEncoder) and the data table used here (org.jcodings.transcode.TranscodeFunctions#tbl0208) and everything appears to match the C implementation.
Reduced case can use {0, 127, -114, -95, -114, -2} because it blows up on the first -2. Running in Ruby you can use the following snippit of code:
This test, based on #42, was mistakenly added while transitioning
to GitHub Actions. I will do a separate PR to restore it and fix
the broken logic it tests.
The following unit tests crash in
org.jcodings.transcode.Transcoding
:The text was updated successfully, but these errors were encountered: