From: "Sean E. Russell" Date: 2006-09-10T11:16:02+09:00 Subject: Re: Segfault in libc strlen, via rb_str_new2 --nextPart26935331.rtUbPIsdWS Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 09 September 2006 01:42, Eric Hodel wrote: > > libxml =3D DL.dlopen( 'libxml2.so' ) > > file_reader =3D 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= =20 pointer and an integer on 32-bit x86. > > The documentation says: > > int=A0=A0=A0xmlTextReaderHasAttributes=A0=A0=A0=A0=A0=A0(xmlTextReaderP= tr 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=20 would certainly gum up the works. Thanks for catching that. =2D-=20 ### SER =20 ### Deutsch|Esperanto|Francaise|Linux|XML|Java|Ruby|Aikido|Iaido ### http://www.ser1.net jabber.com:ser ICQ:83578737=20 ### GPG: http://www.ser1.net/Security/ser_public.gpg --nextPart26935331.rtUbPIsdWS Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFA3WVP0KxygnleI8RAvQGAJ9UtKQkkEq2lWnULLZEKlH/KlCFAgCfQnm/ yqL0+wSVVXA3YOhKrsQPO1E= =g07Q -----END PGP SIGNATURE----- --nextPart26935331.rtUbPIsdWS--