From f266f26cb74a469dbfd9a899ebf8b9b92b59868a Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 5 Nov 2020 16:23:39 -0800 Subject: [PATCH] Improve __cxa_demangle#cxa_demangle_fuzz_167977068 diagnostics. Bug: http://b/172465723 Test: treehugger Change-Id: I253a164f95705bd0cebe06483011b08187072691 --- tests/__cxa_demangle_test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/__cxa_demangle_test.cpp b/tests/__cxa_demangle_test.cpp index 365d96bf8..7e40240ba 100644 --- a/tests/__cxa_demangle_test.cpp +++ b/tests/__cxa_demangle_test.cpp @@ -41,6 +41,8 @@ TEST(__cxa_demangle, cxa_demangle_fuzz_152588929) { TEST(__cxa_demangle, cxa_demangle_fuzz_167977068) { #if defined(__aarch64__) - ASSERT_TRUE(__cxa_demangle("DTLeeeeeeeeeeeeeeeeeeeeeeeeeEEEEeeEEEE", 0, 0, 0) == nullptr); + char* p = __cxa_demangle("DTLeeeeeeeeeeeeeeeeeeeeeeeeeEEEEeeEEEE", 0, 0, 0); + ASSERT_EQ(nullptr, p) << p; + free(p); #endif }