chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-janitors] #621: "numbers" egg dumps core if base argument t


From: Chicken Trac
Subject: Re: [Chicken-janitors] #621: "numbers" egg dumps core if base argument to string->number is too large
Date: Sun, 26 Jun 2011 15:43:37 -0000

#621: "numbers" egg dumps core if base argument to string->number is too large
-------------------------+--------------------------------------------------
  Reporter:  pdh         |       Owner:        
      Type:  defect      |      Status:  closed
  Priority:  major       |   Milestone:  4.8.0 
 Component:  extensions  |     Version:  4.7.x 
Resolution:  fixed       |    Keywords:        
-------------------------+--------------------------------------------------
Changes (by sjamaan):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 It even failed for negative or zero bases.  Turns out the original C
 assert was wrong too since bignum_destructive_scale_up can only deal with
 numbers strictly *smaller* than BIGNUM_RADIX_ROOT. I've added a check so
 that it throws a "bad base" exception when you pass in a base that's
 smaller than 1 or larger/equal to BIGNUM_RADIX_ROOT.

 It's fixed in numbers trunk, changeset [24227]

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/621#comment:1>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]