grpc/test/core/security
Dan Rosart 477a1aec5a Don't segfault when product name from BIOS is empty
Somehow some Dell servers we're trying to run a gRPC client on have an empty product name in the BIOS. When gRPC tries to creadte default credentials, it checks whether it's running on GCE by strcmp()ing the contents of /sys/class/dmi/id/product_name to some magic strings. When it reads that file, it gets only a newline; in trim() it skips over the newline in both directions, and since end < start it returns nullptr. This causes a segfault in the strcmp() call. Since a machine without a product name clearly isn't GCE, change it to return false instead.
2018-07-03 13:13:37 -07:00
..
corpus Add ALTS fuzzer 2018-05-08 10:15:03 -07:00
BUILD Revert "Revert "Add suppressions to sanitizers for bazel builds"" 2018-06-15 16:31:21 -07:00
alts_credentials_fuzzer.cc Add ALTS fuzzer 2018-05-08 10:15:03 -07:00
alts_security_connector_test.cc Add ALTS code to grpc/core 2018-03-08 06:49:24 -08:00
auth_context_test.cc Split lib/support into lib/gpr and lib/gpr++. 2018-01-18 11:21:12 -08:00
check_gcp_environment_linux_test.cc Don't segfault when product name from BIOS is empty 2018-07-03 13:13:37 -07:00
check_gcp_environment_windows_test.cc Include port_platform in gcp_environment tests. 2018-06-27 16:57:11 -07:00
create_jwt.cc Run clang fmt 2018-02-09 09:34:04 -08:00
credentials_test.cc use a new gcp env check mechansim 2018-05-18 10:03:05 -07:00
fetch_oauth2.cc Run clang fmt 2018-02-09 09:34:04 -08:00
grpc_alts_credentials_options_test.cc Add C++ experimental API extensions for ALTS C stack 2018-04-16 15:11:32 -07:00
json_token_test.cc Run clang fmt 2018-02-09 09:34:04 -08:00
jwt_verifier_test.cc Run clang fmt 2018-02-09 09:34:04 -08:00
oauth2_utils.cc Run clang fmt 2018-02-09 09:34:04 -08:00
oauth2_utils.h Merge master 2017-11-06 14:43:31 -08:00
print_google_default_creds_token.cc Run clang fmt 2018-02-09 09:34:04 -08:00
secure_endpoint_test.cc Run clang fmt 2018-02-09 09:34:04 -08:00
security_connector_test.cc fix namespace of security_connector test functions 2018-04-27 08:49:02 -07:00
ssl_credentials_test.cc Enable clang-tidy as a sanity check, fix up all known failures 2017-11-10 14:14:17 -08:00
ssl_server_fuzzer.cc place security_connector in its own subdirectory 2018-02-20 10:09:47 -08:00
verify_jwt.cc Run clang fmt 2018-02-09 09:34:04 -08:00