UBSan Fixes

* Use ~0U to set all flags in a uint32_t, not ~0
* Use INFINITE_TIME rather than -1
* Convert while loops to not decrement through 0

Bug: 129300035
Change-Id: I5e48f5efc2a1966a20923e56c51a39f363191c50
5 files changed
tree: 78836d14780786e3b29275c83e0f39fe2354b749
  1. include/
  2. interface/
  3. lib/
  4. make/
  5. .clang-format
  6. PREUPLOAD.cfg