grpc/third_party/address_sorting
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
..
include/address_sorting Include stddef.h in address_sorting.h 2020-10-21 11:31:27 -07:00
BUILD Format all Bazel files with buildifier 2019-11-05 14:03:52 -08:00
LICENSE Update License 2018-04-23 15:14:21 -07:00
address_sorting.bzl Format all Bazel files with buildifier 2019-11-05 14:03:52 -08:00
address_sorting.c Revert "Merge pull request #16158 from apolcyn/revert_windows_breakage" 2018-07-27 01:38:26 -07:00
address_sorting_internal.h Put address_sorting's public header under its own directory. Also add 2018-03-20 23:51:23 -07:00
address_sorting_posix.c ARM and -Wextra fixups (#19141) 2021-09-27 04:54:05 -07:00
address_sorting_windows.c Revert "Merge pull request #16158 from apolcyn/revert_windows_breakage" 2018-07-27 01:38:26 -07:00