[#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:
Michal Rokos <m.rokos@...>
Date:
2002-10-14 07:33:18 UTC
List:
ruby-core #543
Hi, On Mon, Oct 14, 2002 at 06:58:54AM +0900, Sean Chittenden wrote: > I'm sure there are other places where this could be applied to as > well, however my point was that why would: Of course, there could be many places with bug like this. I just posted quick patch to fix some of your problems... > 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) I have no problem with this... (No coredump) > 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? It's because RSTRING(str)->ptr == NULL is allowed. It's new thing that wasn't before (I think) and some of the methods are not used to... Michal -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Ing. Michal Rokos Czech Technical University, Prague e-mail: m.rokos@sh.cvut.cz icq: 36118339 jabber: majkl@jabber.cz -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-