Skip to content
Permalink
Browse files
Clear code range when modify/expanding string for IO.read(..,buf).
  • Loading branch information
headius committed Dec 15, 2014
1 parent 53ca557 commit fc05939ca6739f0f70ec1695fe9579a7de6f2270
Showing with 1 addition and 0 deletions.
  1. +1 −0 core/src/main/java/org/jruby/RubyIO.java
@@ -3144,6 +3144,7 @@ private IRubyObject readNotAll(ThreadContext context, OpenFile myOpenFile, int l
}

str.setValue(newBuffer);
str.clearCodeRange();
str.setTaint(true);

return str;

0 comments on commit fc05939

Please sign in to comment.