mirror of https://github.com/grpc/grpc.git
[rbac] Fix read of uninitialized variable (#36244)
When parsing `action` fails we don't touch that memory in the object loader, yet we still call `PostLoad` to fill in any other errors. In that case we are currently relying on undefined behavior to have this test work -- why msan didn't flag it upsets me.
Default `action` to some safe value to avoid the undefined behavior, and log the bad action in the error message to ease debugging here in the future.
Closes #36244
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36244 from ctiller:rbac-undef d94b04a508
PiperOrigin-RevId: 621599880
pull/36247/head
parent
0aebe1c7b6
commit
74176f5d16
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue