RE: Safefree() not so safe?

[email protected] (bulk 88) Wed, 18 Dec 2013 10:24:51 -0500
Newsgroups perl.xs
Message-ID <[email protected]>
--_8df4a9bb-8042-4b02-ba41-ed5502a7245d_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



> Date: Wed=2C 18 Dec 2013 08:27:19 -0500
> Subject: Re: Safefree() not so safe?
> From: [email protected]
> To: [email protected]
> CC: [email protected]
>=20
> It's possible the reason it wasn't crashing on your machine is that
> your Perl is configured to use malloc/free instead of Perl's own
> allocator.
>=20
> You can figure that out by checking perl -V for usemymalloc.
>=20
> If it's "=3Dn"=2C Perl is using whatever native calls are available on yo=
ur system.
>=20
> If it's "=3Dy"=2C Perl is using its own internal wrapper.
>=20
> Cheers=2C
>=20
> -- Matthew Horsfall (alh)

That information should not be used. Whatever implements Newx and
Safefree under the hood should be opaque. Win32 Perl has=20
"usemymalloc=3Dn"=2C but a Newx block isn't a malloc block.
 		 	   		  =

--_8df4a9bb-8042-4b02-ba41-ed5502a7245d_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 12pt=3B
font-family:Calibri
}
--></style></head>
<body class=3D'hmmessage'><div dir=3D'ltr'><br><br><div>&gt=3B Date: Wed=2C=
 18 Dec 2013 08:27:19 -0500<br>&gt=3B Subject: Re: Safefree() not so safe?<=
br>&gt=3B From: [email protected]<br>&gt=3B To: [email protected]<br>&gt=
=3B CC: [email protected]<br>&gt=3B <br>&gt=3B It's possible the reason it w=
asn't crashing on your machine is that<br>&gt=3B your Perl is configured to=
 use malloc/free instead of Perl's own<br>&gt=3B allocator.<br>&gt=3B <br>&=
gt=3B You can figure that out by checking perl -V for usemymalloc.<br>&gt=
=3B <br>&gt=3B If it's "=3Dn"=2C Perl is using whatever native calls are av=
ailable on your system.<br>&gt=3B <br>&gt=3B If it's "=3Dy"=2C Perl is usin=
g its own internal wrapper.<br>&gt=3B <br>&gt=3B Cheers=2C<br>&gt=3B <br>&g=
t=3B -- Matthew Horsfall (alh)<br><br>That information should not be used. =
Whatever implements Newx and<br>Safefree under the hood should be opaque. W=
in32 Perl has <br>"usemymalloc=3Dn"=2C but a Newx block isn't a malloc bloc=
k.<br></div> 		 	   		  </div></body>
</html>=

--_8df4a9bb-8042-4b02-ba41-ed5502a7245d_--