Merge "seemp: check array index range"
This commit is contained in:
commit
a1409b4b4b
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ static bool seemp_logk_get_bit_from_vector(__u8 *pVec, __u32 index)
|
||||||
unsigned int bit_num = index%8;
|
unsigned int bit_num = index%8;
|
||||||
unsigned char byte;
|
unsigned char byte;
|
||||||
|
|
||||||
if (DIV_ROUND_UP(index, 8) > MASK_BUFFER_SIZE)
|
if (byte_num >= MASK_BUFFER_SIZE)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
byte = pVec[byte_num];
|
byte = pVec[byte_num];
|
||||||
|
|
Loading…
Add table
Reference in a new issue