Skip to content

Commit

Permalink
Fix msan error introduced in 7b4b275.
Browse files Browse the repository at this point in the history
That change which makes accessing args.attributes unconditionally when creating a PJRT C API client.

PiperOrigin-RevId: 621881293
  • Loading branch information
Jieying Luo authored and copybara-github committed Apr 4, 2024
1 parent 8ea3a17 commit 758abbc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xla/pjrt/c/pjrt_c_api_wrapper_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ PJRT_Error* PJRT_Plugin_Attributes_Empty(PJRT_Plugin_Attributes_Args* args) {
"PJRT_Plugin_Attributes_Args", PJRT_Plugin_Attributes_Args_STRUCT_SIZE,
args->struct_size));
args->num_attributes = 0;
args->attributes = nullptr;
return nullptr;
}

Expand Down

0 comments on commit 758abbc

Please sign in to comment.