From 4fdfb28e7d2e3eefc0df1e1d034fbfc932c0d2a1 Mon Sep 17 00:00:00 2001 From: usa Date: Thu, 14 Sep 2017 11:35:52 +0000 Subject: merge revision(s) 58453,58454: [Backport #13499] Fix space flag when Inf/NaN and width==3 * sprintf.c (rb_str_format): while `"% 2f"` and `"% 4f"` result in `" Inf"` and `" Inf"` respectively, `"% 3f"` results in `"Inf"` (no space). Refactor "%f" % Inf/NaN * sprintf.c (rb_str_format): as for non-finite float, calculate the exact needed size with the space flag. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@59901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index ef36ffbd15..a4594f678f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +Thu Sep 14 20:33:52 2017 Nobuyoshi Nakada + + Fix space flag when Inf/NaN and width==3 + + * sprintf.c (rb_str_format): while "% 2f" and "% 4f" result in " Inf" + and " Inf" respectively, "% 3f" results in "Inf" (no space). + + Refactor "%f" % Inf/NaN + + * sprintf.c (rb_str_format): as for non-finite float, calculate the + exact needed size with the space flag. + Sun Sep 10 10:10:05 2017 SHIBATA Hiroshi * lib/rubygems: fix several vulnerabilities in RubyGems; bump to version -- cgit v1.2.3