summaryrefslogtreecommitdiff
path: root/spec/ruby/core
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-16 21:47:32 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-17 08:34:19 +0900
commitf487e5b7a4b13d23a8bb7807e4f5cc3f9b2a30e3 (patch)
tree4032de8185e293012f8824b45d0700361a5a81ad /spec/ruby/core
parented2f2b4f98800540024b9c4a5ebde98674889013 (diff)
Expanded buf to copy at once
Build dumped string from base packed data and extended year at once. Although currently ruby_marshal_write_long() never writes more than 5 bytes per its format specification, allocate `sizeof(long)+1` for the sanitation.
Diffstat (limited to 'spec/ruby/core')
0 files changed, 0 insertions, 0 deletions