Generalize -fsanitize=address checks

...that are at least also relevant for -fsanitize=undefined

Change-Id: I39044d2a73912a605af8e965eb1cdf8dfd4f0051