coverity: #1426130

Bad bit shift operation Fixes: commit b5b12b9e ("criu: add feature check capability") Cc: Adrian Reber <areber@redhat.com> Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 7a0b6060
......@@ -694,7 +694,7 @@ bool __criu_check_feature(uint64_t *features_to_check)
return false;
}
while (current_bit < sizeof(uint64_t) * 8) {
while (current_bit < (sizeof(uint64_t) * 8 - 1)) {
/* only test requested features */
if (!(features & (1ULL << current_bit))) {
/* skip this */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment