Allow make test with ASan / --address-sanitizer
Andrew Bartlett
abartlet at samba.org
Thu May 3 07:20:51 UTC 2018
On Thu, 2018-05-03 at 16:35 +1200, Andrew Bartlett via samba-technical
wrote:
> I needed to get AddressSanitizer working to fix the LSA use-after-free
> bug and the attached make it all work again.
>
> Recent versions of GCC require that the library be in LD_PRELOAD before
> anything that is linked with libasan. I use a horrible ldd hack to
> find the right library path (sorry, not sorry).
>
> Once we get a more modern sn-devel I'll enable this by default in
> autobuild.
And this patch allows a developer build with --address-sanitizer
enabled.
Please review this also.
Thanks!
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fb7f652f818e955460dbff7e57eba8963975489d.patch
Type: text/x-patch
Size: 991 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180503/17c9a06f/fb7f652f818e955460dbff7e57eba8963975489d.bin>
More information about the samba-technical
mailing list