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
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-