Skip to content

anonymous /gist:1365706

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
diff --git a/kernel/common/marshal.rb b/kernel/common/marshal.rb
index 5b0dc71..f0d1dab 100644
--- a/kernel/common/marshal.rb
+++ b/kernel/common/marshal.rb
@@ -970,7 +970,7 @@ module Marshal
ms.construct
rescue NameError => e
- raise ArgumentError, e.message
+ raise ArgumentError, e.message, e
end
class << self
diff --git a/lib/compiler/compiled_file.rb b/lib/compiler/compiled_file.rb
index 1ca9af3..35e3054 100644
--- a/lib/compiler/compiled_file.rb
+++ b/lib/compiler/compiled_file.rb
@@ -211,7 +211,7 @@ module Rubinius
# Returns the next string in _@data_ including the trailing
# "\n" character.
def next_string
- count = @data.locate "\n", @start
+ count = @data.locate "\n", @start, @size
count = @size unless count
str = String.from_chararray @data, @start, count - @start
@start = count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.