chicken-janitors
[Top][All Lists]
Advanced

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

Re: [Chicken-janitors] #1272: string->number crash


From: Chicken Trac
Subject: Re: [Chicken-janitors] #1272: string->number crash
Date: Thu, 31 Mar 2016 19:26:00 -0000

#1272: string->number crash
-----------------------------+----------------------------
  Reporter:  mario           |      Owner:
      Type:  defect          |     Status:  new
  Priority:  critical        |  Milestone:  4.11.0
 Component:  core libraries  |    Version:  4.10.x
Resolution:                  |   Keywords:  string->number
-----------------------------+----------------------------

Comment (by sjamaan):

 OK, my analysis of yesterday was a bit too hasty: {{{C_LONG_MAX}}} is also
 conditionally declared to be either {{{LONG_MAX}}} or {{{LONG_LONG_MAX}}}.
 This is all correct.

 The handling of error situations seems to be the problem: the
 {{{C_LONG_MAX}}}/{{{C_LONG_MIN}}} values are returned iff the result is an
 overflow or underflow.  However, the (draft) spec also says "If no
 conversion could be performed, zero is returned", and this is what is
 happening here.  {{{eptr}}} is never even touched (though the spec doesn't
 say if this may happen).

--
Ticket URL: <http://bugs.call-cc.org/ticket/1272#comment:2>
CHICKEN Scheme <http://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

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