mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 16:23:34 +08:00
Fixes buffer overwrite on CONFIG_ARCH_BOARD_AEROCORE
This commit is contained in:
committed by
Lorenz Meier
parent
4614511474
commit
9c6f4de753
@@ -1717,7 +1717,7 @@ ssize_t
|
|||||||
PX4FMU::write(file *filp, const char *buffer, size_t len)
|
PX4FMU::write(file *filp, const char *buffer, size_t len)
|
||||||
{
|
{
|
||||||
unsigned count = len / 2;
|
unsigned count = len / 2;
|
||||||
uint16_t values[6];
|
uint16_t values[8];
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_BOARD_AEROCORE
|
#ifdef CONFIG_ARCH_BOARD_AEROCORE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user