aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2018-07-21 00:23:18 -0700
committerGravatar GitHub <noreply@github.com>2018-07-21 00:23:18 -0700
commit2cfc216cfd58dc247249da87dbefa8bb949c8b9c (patch)
treee578f211c40e68490ed77bace3b8b2b91acba826 /test
parentdbc1e27e2e1a81b61eb064eb036ec6a267f88cb6 (diff)
parentd4c98676e359e74007b4f79e264b2f8fcfc30a58 (diff)
Merge pull request #15929 from Torgen/empty_product_name_segfault
Don't segfault when product name from BIOS is empty
Diffstat (limited to 'test')
-rw-r--r--test/core/security/check_gcp_environment_linux_test.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/core/security/check_gcp_environment_linux_test.cc b/test/core/security/check_gcp_environment_linux_test.cc
index 3acd5b6ae4..b01471abd3 100644
--- a/test/core/security/check_gcp_environment_linux_test.cc
+++ b/test/core/security/check_gcp_environment_linux_test.cc
@@ -69,6 +69,7 @@ static void test_gcp_environment_check_failure() {
GPR_ASSERT(!check_bios_data_linux_test("Amazon"));
GPR_ASSERT(!check_bios_data_linux_test("Google-Chrome\t\t"));
GPR_ASSERT(!check_bios_data_linux_test("Amazon"));
+ GPR_ASSERT(!check_bios_data_linux_test("\n"));
}
int main(int argc, char** argv) {