Add no enum sanitizer annotations around functions that need to fill/load in grpc_status_code

pull/17975/head
Yash Tibrewal 6 years ago
parent e5eb3f8019
commit 56a93d4c18
  1. 6
      src/core/lib/surface/call.cc
  2. 8
      src/core/lib/transport/error_utils.cc

@ -1494,9 +1494,9 @@ static void free_no_op_completion(void* p, grpc_cq_completion* completion) {
gpr_free(completion);
}
static grpc_call_error call_start_batch(grpc_call* call, const grpc_op* ops,
size_t nops, void* notify_tag,
int is_notify_tag_closure) {
__attribute__((no_sanitize("enum"))) static grpc_call_error call_start_batch(
grpc_call* call, const grpc_op* ops, size_t nops, void* notify_tag,
int is_notify_tag_closure) {
GPR_TIMER_SCOPE("call_start_batch", 0);
size_t i;

@ -44,10 +44,10 @@ static grpc_error* recursively_find_error_with_field(grpc_error* error,
return nullptr;
}
void grpc_error_get_status(grpc_error* error, grpc_millis deadline,
grpc_status_code* code, grpc_slice* slice,
grpc_http2_error_code* http_error,
const char** error_string) {
__attribute__((no_sanitize("enum"))) void grpc_error_get_status(
grpc_error* error, grpc_millis deadline, grpc_status_code* code,
grpc_slice* slice, grpc_http2_error_code* http_error,
const char** error_string) {
// Start with the parent error and recurse through the tree of children
// until we find the first one that has a status code.
grpc_error* found_error =

Loading…
Cancel
Save