[#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
SEVG in bignum.c:505...
From:
Sean Chittenden <sean@...>
Date:
2002-10-13 07:23:42 UTC
List:
ruby-core #536
$ ruby -e 'p [].to_s.strip.to_i' -e:1: [BUG] Segmentation fault ruby 1.7.3 (2002-09-27) [i386-freebsd4] Abort (core dumped) See attached. -sc -- Sean Chittenden
Attachments (1)
patch
(465 Bytes, text/x-diff)
Index: bignum.c
===================================================================
RCS file: /src/ruby/bignum.c,v
retrieving revision 1.78
diff -u -r1.78 bignum.c
--- bignum.c 2002/10/07 07:43:41 1.78
+++ bignum.c 2002/10/13 07:19:06
@@ -502,6 +502,8 @@
StringValue(str);
s = RSTRING(str)->ptr;
len = RSTRING(str)->len;
+ if (len == 0)
+ return(INT2NUM(0));
if (s[len]) { /* no sentinel somehow */
char *p = ALLOCA_N(char, len+1);