[no subject]

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Best,

Joseph Mirabel




--_000_DBBPR03MB6908B1DAE0B6141C92B54766BD879DBBPR03MB6908eurp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc=
hemas-microsoft-com:office:word" xmlns:m=3D"http://schemas.microsoft.com/of=
fice/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html40";>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:DengXian;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:"\@DengXian";
	panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
..MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style>
</head>
<body lang=3D"EN-GB" link=3D"#0563C1" vlink=3D"#954F72" style=3D"word-wrap:=
break-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hello Joseph,<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">My experience is no - if you want to use Address San=
itizer, *<b>ALL</b>* your code must be compiled with it, otherwise you will=
 hit false positives eventually. This is nothing specific to Eigen but will=
 affect any library.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">By coincidence I wrote a blog post about this and ho=
w I solve the problem at the weekend, you can find it here:
<a href=3D"https://spinicist.org.uk/posts/vcpkg-part2/";>https://spinicist.o=
rg.uk/posts/vcpkg-part2/</a><o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Good luck,<o:p></o:p></p>
<p class=3D"MsoNormal">Toby<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><b><span style=3D"fon=
t-size:12.0pt;color:black">From:
</span></b><span style=3D"font-size:12.0pt;color:black">Joseph Mirabel &lt;=
joseph.mirabel@xxxxxxx&gt;<br>
<b>Date: </b>Tuesday, 16 February 2021 at 15:20<br>
<b>To: </b>eigen@xxxxxxxxxxxxxxxxxxx &lt;eigen@xxxxxxxxxxxxxxxxxxx&gt;<br>
<b>Subject: </b>[eigen] Eigen and GCC address sanitizer<o:p></o:p></span></=
p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt">Dear Eigen developers=
,<br>
<br>
<br>
Is it safe to compile a library using Eigen with option<br>
`-fsanitize=3Daddress` and then to link this library to another library,<br=
>
also using Eigen, which hasn't been compiled with this option ?<br>
<br>
<br>
I have head-buffer-overflow errors coming from<br>
Eigen::internal::handmade_aligned_free(void*), at<br>
/usr/include/eigen3/Eigen/src/Core/util/Memory.h:98.<br>
<br>


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/