This patch adds a new feature, -fsanitize=init-locals, which generates zero initializers for uninitialized local variables.
There's been discussions in the security community about the impact of zero-initializing all locals to prevent information leaks. The new feature shall help evaluating the pros and cons of such an approach.
Credits for the code go to Daniel Micay (original patch is at https://github.com/AndroidHardeningArchive/platform_external_clang/commit/776a0955ef6686d23a82d2e6a3cbd4a6a882c31c)
Unless i'm mistaken, I suspect you may see some surprising behavior here, unfortunately.
Bug 39425 - SanitizerOrdinal is out of bits