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
This is a patch we used for JRuby 1.7.13 as well, so it is not new, just expanded in scope, somehow.
%i[\[\]bytesinspectlengthsizeto_s].eachdo |method_name|
class_eval<<~METHOD_DEFINITION def #{method_name}(*args, &block) return super if ascii_only? return dup.#{method_name}(*args, &block) if frozen? original_encoding = encoding force_encoding(Encoding::BINARY).force_encoding(original_encoding) super end METHOD_DEFINITIONend
@headius I have spent weeks on this one :)
This is a patch we used for JRuby 1.7.13 as well, so it is not new, just expanded in scope, somehow.
We have a test that uncovers the bug:
It will cause a Fatal signal 7 on "Samsung Galaxy Tab A" tablets even across Android versions 7, 8.0, and 8.1.
This patch solves most of our use cases, but one is still failing, and I am working on trying to find if more methods need to be patched.
@headius I do not understand why the patch works. Maybe you have an idea?
The text was updated successfully, but these errors were encountered: