chicken-janitors
[Top][All Lists]
Advanced

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

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


From: Chicken Trac
Subject: [Chicken-janitors] #621: "numbers" egg dumps core if base argument to string->number is too large
Date: Sat, 25 Jun 2011 01:05:16 -0000

#621: "numbers" egg dumps core if base argument to string->number is too large
------------------------+---------------------------------------------------
 Reporter:  pdh         |       Owner:       
     Type:  defect      |      Status:  new  
 Priority:  major       |   Milestone:  4.8.0
Component:  extensions  |     Version:  4.7.x
 Keywords:              |  
------------------------+---------------------------------------------------
 After loading the "numbers" egg, if the base is too large for
 string->number, csi dumps core.

 Looks like this:
 > $ csi
 > ...
 > Version 4.7.0
 > openbsd-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
 >
 > #;1> (use numbers)
 > ...
 > #;2> (string->number "10" (- (expt 2 (/ (- (* 8 8) 2) 2)) 1))
 > 2147483647
 > #;3> (string->number "10" (expt 2 (/ (- (* 8 8) 2) 2)))
 > Abort trap (core dumped)

 It is failing in string_to_big() in numbers-c.c at line 2328:
 >  BIGNUM_ASSERT ((radix > 1) && (radix <= BIGNUM_RADIX_ROOT));

 BIGNUM_ASSERT just calls "abort" if the test fails, which causes the
 core dump.

 Observed in the "numbers" egg Version 2.6.  (That is, the version
 that I installed today.)

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/621>
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]