[#536] SEVG in bignum.c:505... — Sean Chittenden <sean@...>
$ ruby -e 'p [].to_s.strip.to_i'
5 messages
2002/10/13
[#537] darwin shared library patch — Eric Melville <eric@...>
In Darwin, the preferred way to build shared libraries is with two level
9 messages
2002/10/13
[#539] Re: darwin shared library patch
— "Akinori MUSHA" <knu@...>
2002/10/13
Hi,
[#544] Re: darwin shared library patch
— Eric Melville <eric@...>
2002/10/16
> The patch seems to make ENV[]= coredump.
[#546] Re: darwin shared library patch
— "Akinori MUSHA" <knu@...>
2002/10/16
At Thu, 17 Oct 2002 01:41:49 +0900,
[#541] Patch for MacOS X dln.c — Luc B駘anger <belanglu@...>
I have a patch for the dynamic linker in MacOS X, which permit to load
7 messages
2002/10/13
Re: SEVG in bignum.c:505...
From:
Sean Chittenden <sean@...>
Date:
2002-10-13 21:58:54 UTC
List:
ruby-core #542
> your patch was OK, but incomplete. This could help with the
> rest.
I'm sure there are other places where this could be applied to as
well, however my point was that why would:
''.to_i
''.to_s.to_s.strip.to_i
those two not SEGV, but the following would?
[].to_s.to_s.strip.to_i
-e:1: [BUG] Segmentation fault
ruby 1.7.3 (2002-09-27) [i386-freebsd4]
Abort (core dumped)
My concern is that both of our patches are covering up a problem else
where. Why does this not break with a string but it does with an
array? ::shrug:: I don't know but it seems like a band-aid over a
problem that will show up at a later date. Here's a non-strip version
of the bug that applies to strings:
''.strip.strip.to_i
''.delete('').delete('').to_i
''.delete('').delete('').to_f
-sc
--
Sean Chittenden