mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* numeric.c (flo_to_s): get rid of buffer overflow.
* io.c (appendline): clearerr(3) before raising exception, since exception may be captured by rescue. [ruby-talk:77794] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
086830cbac
commit
2c225e77e0
5 changed files with 262 additions and 223 deletions
|
@ -289,7 +289,7 @@ static VALUE
|
|||
flo_to_s(flt)
|
||||
VALUE flt;
|
||||
{
|
||||
char buf[24];
|
||||
char buf[25];
|
||||
char *fmt = "%.15g";
|
||||
double value = RFLOAT(flt)->value;
|
||||
double avalue, d1, d2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue