Improve __cxa_demangle#cxa_demangle_fuzz_167977068 diagnostics.

Bug: http://b/172465723
Test: treehugger
Change-Id: I253a164f95705bd0cebe06483011b08187072691
This commit is contained in:
Elliott Hughes 2020-11-05 16:23:39 -08:00
parent 56f1c406a5
commit f266f26cb7
1 changed files with 3 additions and 1 deletions

View File

@ -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
}