Fixing potential int overflow and uninitialized variables.
These were found by Coverity static code inspection.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lldb/source/Plugins/Process/Utility/NativeRegisterContextDBReg_x86.cpp | ||
---|---|---|
67 | For this platform, based on the code and the hardcoded constant the range of wp_index is limited to 0-3 (inclusive) | |
77 | Not on purpose. It's interesting this instance wasn't flagged by coverity likely because Agreed it would be best be explicit and consistent and mark it as 0xFull. I could include this it into the next batch of reliability diffs next week. |
So we know that wp_index is never greater than 11?