[#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: "Sean E. Russell" <ser@...>
Date: 2006-09-10 02:16:02 UTC
List: ruby-core #8821
On Saturday 09 September 2006 01:42, Eric Hodel wrote:
> > libxml = DL.dlopen( 'libxml2.so' )
> > file_reader = libxml[ 'xmlNewTextReaderFilename', 'IS' ]
>
> The documentation says:
> xmlTextReaderPtr	xmlNewTextReaderFilename	(const char * URI)
>
> So I think IS is wrong, and PS is correct.

Hmm.  My C is rusty, but I didn't think there was any difference between a 
pointer and an integer on 32-bit x86.

> > The documentation says:
> > intmlTextReaderHasAttributes(xmlTextReaderPtr reader)
> >
> > So I think SI is wrong and SP is correct.
>
> I meant IP, like I wrote below in the code.

Yeah, that would do it.  I'm not sure P -> I is that big of a deal, but I -> S 
would certainly gum up the works.  Thanks for catching that.

-- 
### SER   
### Deutsch|Esperanto|Francaise|Linux|XML|Java|Ruby|Aikido|Iaido
### http://www.ser1.net  jabber.com:ser  ICQ:83578737 
### GPG: http://www.ser1.net/Security/ser_public.gpg

In This Thread