From b7d00454ba6a2bf11fb7df3b435c2a72cf2823f0 Mon Sep 17 00:00:00 2001 From: Asra Ali Date: Mon, 27 Nov 2023 13:52:59 -0800 Subject: [PATCH] Fixes internal asan error PiperOrigin-RevId: 585751010 --- transpiler/examples/string_cap/string_cap_test.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/transpiler/examples/string_cap/string_cap_test.cc b/transpiler/examples/string_cap/string_cap_test.cc index 7e5651a..cc842c2 100644 --- a/transpiler/examples/string_cap/string_cap_test.cc +++ b/transpiler/examples/string_cap/string_cap_test.cc @@ -28,8 +28,10 @@ #include "transpiler/examples/string_cap/string_cap_tfhe_xls_transpiled.h" #endif +#include + TEST(StringCapTest, CorrectlyCapitalizesShortPhrase) { - char result[] = "do or do not"; + char result[MAX_LENGTH] = "do or do not"; CapitalizeString(result); ASSERT_STREQ(result, "Do Or Do Not");