1
0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-02 11:30:41 +00:00

bdk: i2c: fix stack buffer overflow

This commit is contained in:
CTCaer 2023-08-07 21:02:20 +03:00
parent 09b1efe2a4
commit f2bdc3f47c

View File

@ -386,7 +386,7 @@ int i2c_recv_buf_big(u8 *buf, u32 size, u32 i2c_idx, u32 dev_addr, u32 reg)
int i2c_send_buf_small(u32 i2c_idx, u32 dev_addr, u32 reg, u8 *buf, u32 size)
{
u8 tmp[4];
u8 tmp[8];
if (size > 7)
return 0;