summaryrefslogtreecommitdiff
path: root/lib/rubygems/safe_marshal.rb
diff options
context:
space:
mode:
authorSamuel Giddins <[email protected]>2023-08-21 09:13:43 -0700
committergit <[email protected]>2023-09-20 02:03:02 +0000
commite52f9bd41e1c407ac675fa3d1fbaabec854f6968 (patch)
treedfa011021ed57acb4312e072c520cd318d9f81d4 /lib/rubygems/safe_marshal.rb
parentf0d1b0cc4b5a99de9dc709b8f43d8be8e18c7323 (diff)
[rubygems/rubygems] Bundler error handling
https://github.com/rubygems/rubygems/commit/63b422b71a
Diffstat (limited to 'lib/rubygems/safe_marshal.rb')
-rw-r--r--lib/rubygems/safe_marshal.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/safe_marshal.rb b/lib/rubygems/safe_marshal.rb
index 215f851167..d308f2d65f 100644
--- a/lib/rubygems/safe_marshal.rb
+++ b/lib/rubygems/safe_marshal.rb
@@ -62,7 +62,7 @@ module Gem
end
def self.load(input, permitted_classes: [::Symbol], permitted_symbols: [], permitted_ivars: {})
- root = Reader.new(StringIO.new(input, "r")).read!
+ root = Reader.new(StringIO.new(input, "r").binmode).read!
Visitors::ToRuby.new(
permitted_classes: permitted_classes,