From: Charles Oliver Nutter Date: 2009-06-11T01:55:07+09:00 Subject: Re: [Security] Ruby 1.8.6-pl369 released On Wed, Jun 10, 2009 at 11:34 AM, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: [Security] Ruby 1.8.6-pl369 released" >    on Thu, 11 Jun 2009 01:28:06 +0900, Charles Oliver Nutter writes: > > |1.9.1 appears to produce Float::MAX or Float::MIN for exponents > |outside float range, not Inf. It seems like the possibility of it > |running forever trying to produce an impossibly large Bignum should be > |addressed in some similar way. > > 1.9.2 BigDecimal#to_f produces Inf for too big numbers.  I am not sure > what we can do for BigDecimal#to_i yet. So Inf is official behavior then? I'm in process of at least getting JRuby up to 1.9.x behavior for these cases. Perhaps we can examine the size of the exponent for to_i to determine whether it's within a reasonable range? - Charlie