Encoding: Reformulate to avoid unsigned int overflow
All threads resolved!
All threads resolved!
Playing with clang UBSan unsigned-integer-overflow I found just 2 warnings in KWSys.
They are not undefined behavior, but often unintentional.
A reformulation to avoid the overflow was pretty straightforward.
Also noticed and changed &v[0]
idiom to v.data()
.
Edited by Brad King
Merge request reports
Activity
added 4 commits
-
defcc4ed...2fbdf7e5 - 3 commits from branch
utils:master
- 3489e4a2 - Encoding: Reformulate to avoid unsigned int overflow
-
defcc4ed...2fbdf7e5 - 3 commits from branch
assigned to @brad.king
requested review from @brad.king
mentioned in commit 39daa0e7
mentioned in merge request cmake/cmake!10247 (merged)
Please register or sign in to reply