1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* vsnprintf.c (BSD__uqtoa): Fix overflow when long != quad_t.

patched by Peter Weldon <peter.weldon AT null.net>
  [ruby-core:33985]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2010-12-30 18:53:41 +00:00
parent 6eae4ecb0b
commit 3d38ba877e
3 changed files with 10 additions and 1 deletions

View file

@ -368,7 +368,7 @@ static char *
BSD__uqtoa(register u_quad_t val, char *endp, int base, int octzero, const char *xdigs)
{
register char *cp = endp;
register long sval;
register quad_t sval;
/*
* Handle the three cases separately, in the hope of getting