grpc/test/cpp/server
Austin Schuh d30404868f
ARM and -Wextra fixups (#19141)
* Make generated code compile with -Wunused-parameters

-Wunused-parameters is turned on by -Werror -Wextra.  gRPC code
generation creates header files with unused parameters.  So let's modify
the generator to not generate code which will make -Wunused-parameters
unhappy.

* Fix unsigned vs signed comparisons and 32 bit string formats

Fix unsigned vs signed comparison warnings.

For 64 bit numbers printed in gRPC, the string formats assume that you
are running on a 64 bit machine.  Use inttypes.h to make it portable.
Also, use size_t format strings for the same reason.

* Fix unaligned memory access

cost_entry_ptr has no alignment guarentees that ubsan can find.  So it
fails the test with an alignment problem.  Use memcopy to read the data
from the pointer to fix this.

* Fix undefined behavior with memcpy and memcmp

Passing in a 0 length piece of data and a null pointer is undefined
behavior.  If the length is 0, don't pass it in.  This fixes ubsan
failures.

* Clang-format

* Automated change: Fix sanity tests
2021-09-27 04:54:05 -07:00
..
load_reporter ARM and -Wextra fixups (#19141) 2021-09-27 04:54:05 -07:00
BUILD Static policy provider implementation. (#26134) 2021-06-03 23:18:08 -07:00
authorization_policy_provider_test.cc Adjust include order per style guide (#27175) 2021-09-08 12:14:44 -07:00
credentials_test.cc Adjust include order per style guide (#27175) 2021-09-08 12:14:44 -07:00
server_builder_test.cc Adjust include order per style guide (#27175) 2021-09-08 12:14:44 -07:00
server_builder_with_socket_mutator_test.cc Adjust include order per style guide (#27175) 2021-09-08 12:14:44 -07:00
server_request_call_test.cc Adjust include order per style guide (#27175) 2021-09-08 12:14:44 -07:00