Coverity raised a potential overflow issue in these new functions that
work on unsigned long long objects. They were added in commit
9b25982
"BUG/MEDIUM: ssl: Verify error codes can exceed 63".
This patch needs to be backported alongside
9b25982.
int val = 0;
if (byte_index < IGNERR_BF_SIZE)
- val = bitfield[byte_index] & (1 << (bit_index & 0x3F));
+ val = bitfield[byte_index] & (1ULL << (bit_index & 0x3F));
return val != 0;
}
int byte_index = bit_index >> 6;
if (byte_index < IGNERR_BF_SIZE)
- bitfield[byte_index] |= (1 << (bit_index & 0x3F));
+ bitfield[byte_index] |= (1ULL << (bit_index & 0x3F));
}
static inline void cert_ignerr_bitfield_set_all(unsigned long long *bitfield)