Update sfud.c
修复可能存在越界访问的问题
This commit is contained in:
parent
dc2ee97e66
commit
24c9e8cb3f
@ -691,7 +691,7 @@ __exit:
|
||||
static sfud_err aai_write(const sfud_flash *flash, uint32_t addr, size_t size, const uint8_t *data) {
|
||||
sfud_err result = SFUD_SUCCESS;
|
||||
const sfud_spi *spi = &flash->spi;
|
||||
uint8_t cmd_data[6], cmd_size;
|
||||
uint8_t cmd_data[8], cmd_size;
|
||||
bool first_write = true;
|
||||
|
||||
SFUD_ASSERT(flash);
|
||||
|
Loading…
x
Reference in New Issue
Block a user