Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50b1d5bf authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "seemp: check array index range"

parents 80e2ccd6 baeebf09
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -289,7 +289,7 @@ static bool seemp_logk_get_bit_from_vector(__u8 *pVec, __u32 index)
	unsigned int bit_num = index%8;
	unsigned char byte;

	if (DIV_ROUND_UP(index, 8) > MASK_BUFFER_SIZE)
	if (byte_num >= MASK_BUFFER_SIZE)
		return false;

	byte = pVec[byte_num];