[#8815] Segfault in libc strlen, via rb_str_new2 — "Sean E. Russell" <ser@...>

Howdy,

12 messages 2006/09/09
[#8817] Re: Segfault in libc strlen, via rb_str_new2 — Eric Hodel <drbrain@...7.net> 2006/09/09

On Sep 8, 2006, at 10:10 PM, Sean E. Russell wrote:

Re: Segfault in libc strlen, via rb_str_new2

From: Vincent Fourmond <vincent.fourmond@9online.fr>
Date: 2006-09-15 14:46:19 UTC
List: ruby-core #8880
> One is NEVER allowed to assume that a pointer can be stored in an arithmetic 
> value, e.g. it's possible that on some architecture arithmetic values are 32 
> bit and pointers are 36 bit (IIRC there is an architecture where this is 
> really true).

  Unless maybe in when compiling some extension for ruby ?

ruby.h: (at least in version 1.8.4)

#if SIZEOF_LONG != SIZEOF_VOIDP
# error ---->> ruby requires sizeof(void*) == sizeof(long) to be
compiled. <<----

	Vince


In This Thread