jruby / jcodings

Java-based codings helper classes for Joni and JRuby
MIT License
20 stars 29 forks source link

Fix AIOOB in CP50220 transcoding #55

Open headius opened 2 years ago

headius commented 2 years ago

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.

ahorek commented 1 year ago

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).