jcodings
jcodings copied to clipboard
Fix AIOOB in CP50220 transcoding
This PR will fix #42 and include a test based on the code provided there by @djoooooe.
The test was mistakenly added to master some time ago, and just removed, so this PR restores it and will not pass until the behavior is fixed.
it works on CRuby, because C silently ignores OOB access. Linking with a proposed fix for CRuby https://github.com/ruby/ruby/pull/5696 (it wasn't merged yet).