3 ms·
I think that using ASAN in production is a terrible idea, from the reasons you've provided. Also a memory corruption might not be there, but ASAN is always ther
by self_awareness 2y ago
I think that using ASAN in production is a terrible idea, from the
reasons you've provided. Also a memory corruption might not be there,
but ASAN is always there, so we're switching a potential open attack
vector for an guaranteed open attack vector.
But generally, using ASAN in production is not what ASAN is for. If
someone needs "memory safety" that ASAN provides, and doesn't care about
slower runtime, then why did they use C++ in the first place? Just use
Java. I understand this is not an option for old codebases though.
Also, using ASAN in production is like using a library for which the
author states it's only meant for debugging and they doesn't really care
about introducing any attack vectors in future versions. Even if it's
not "exploitable" now, it might be in the future. Why would anyone want
to use such library and take the responsibility that nothing bad will
happen on the customer machine?