Skip to content

Subtract begin offset for partial substring in sprintf 's'#6138

Merged
headius merged 3 commits intojruby:jruby-9.2from
headius:fix_6137
Mar 25, 2020
Merged

Subtract begin offset for partial substring in sprintf 's'#6138
headius merged 3 commits intojruby:jruby-9.2from
headius:fix_6137

Conversation

@headius
Copy link
Member

@headius headius commented Mar 24, 2020

See #6137 for the original bug report. This PR includes the change proposed there along with some new doco for nth and a spec.

headius added 3 commits March 24, 2020 16:09
This gets a bit deep into how string buffers are used and shared
but since it was exposed as a bug (jruby#6137) and CRuby
does the same copy-on-write buffer treatment that JRuby does, it
seemed an appropriate spec to add.
@headius headius added this to the 9.2.11.1 milestone Mar 24, 2020
@headius headius changed the base branch from master to jruby-9.2 March 24, 2020 21:23
@headius headius requested a review from kares March 24, 2020 21:24
@headius headius merged commit bf8c2f4 into jruby:jruby-9.2 Mar 25, 2020
@headius headius deleted the fix_6137 branch March 25, 2020 01:19
@headius
Copy link
Member Author

headius commented Mar 25, 2020

Moving forward with this since we want to put a release out tomorrow.

@enebo enebo modified the milestones: 9.2.11.1, JRuby 9.2.11.1 Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sprintf adds extra buffer slots when precision arg truncates string slices

2 participants